add active merchant and payment schema
This commit is contained in:
parent
69a5d41b79
commit
e8f1645fc2
5 changed files with 44 additions and 0 deletions
18
db/migrate/20160606040848_create_payments.rb
Normal file
18
db/migrate/20160606040848_create_payments.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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
|
||||
t.integer :user_id
|
||||
t.integer :conference_id
|
||||
t.datetime :created_at
|
||||
t.datetime :updated_at
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue