Class: CreatePayuPayments

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/spree_payuin/install/templates/create_payu_payments.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/generators/spree_payuin/install/templates/create_payu_payments.rb', line 2

def change
  create_table :payu_payments do |t|
    t.string :payment_id
    t.string :mode
    t.string :status
    t.string :key
    t.string :transaction_id
    t.float :amount
    t.string :discount
    t.text :json

    t.timestamps
  end
end