2016-06-18 18:06:36 +05:30
|
|
|
class CreatePayments < ActiveRecord::Migration
|
|
|
|
|
def change
|
|
|
|
|
create_table :payments do |t|
|
2016-07-21 22:43:43 +05:30
|
|
|
t.string :full_name, null: false
|
2016-06-18 18:06:36 +05:30
|
|
|
t.string :last4
|
2016-07-21 22:43:43 +05:30
|
|
|
t.integer :amount, null: false
|
2016-06-18 18:06:36 +05:30
|
|
|
t.string :authorization_code
|
2016-07-21 22:43:43 +05:30
|
|
|
t.integer :status, default: 0, null: false
|
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.timestamps null: false
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|