2016-06-18 18:06:36 +05:30
|
|
|
class CreatePayments < ActiveRecord::Migration
|
|
|
|
|
def change
|
|
|
|
|
create_table :payments do |t|
|
|
|
|
|
t.string :first_name
|
|
|
|
|
t.string :last_name
|
|
|
|
|
t.string :last4
|
|
|
|
|
t.decimal :amount, precision: 12, scale: 3
|
|
|
|
|
t.string :authorization_code
|
|
|
|
|
t.integer :status, default: 0
|
2016-07-21 10:15:17 +05:30
|
|
|
t.integer :user_id, null: false
|
|
|
|
|
t.integer :conference_id, null: false
|
2016-06-18 18:06:36 +05:30
|
|
|
t.datetime :created_at
|
|
|
|
|
t.datetime :updated_at
|
|
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|