2016-07-27 13:18:50 +05:30
|
|
|
class CreatePayments < ActiveRecord::Migration
|
|
|
|
|
def change
|
|
|
|
|
create_table :payments do |t|
|
2016-07-28 15:27:30 +05:30
|
|
|
t.string :last4
|
2016-07-28 20:42:04 +05:30
|
|
|
t.integer :amount, null: false
|
2016-07-28 15:27:30 +05:30
|
|
|
t.string :authorization_code
|
2016-07-27 13:18:50 +05:30
|
|
|
t.integer :status, default: 0, null: false
|
|
|
|
|
t.integer :user_id, null: false
|
|
|
|
|
t.integer :conference_id, null: false
|
|
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|