Class: CreatePayFuTransactions

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/pay_fu/templates/migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  create_table :pay_fu_transactions do |t|
    t.string :type
    t.string :transaction_id
    t.string :transaction_type
    t.string :payment_status
    t.datetime :payment_date
    t.integer :gross
    t.string :raw_post

    t.timestamps
  end
end