add active merchant and payment schema
This commit is contained in:
parent
69a5d41b79
commit
e8f1645fc2
5 changed files with 44 additions and 0 deletions
12
db/schema.rb
12
db/schema.rb
|
|
@ -250,6 +250,17 @@ ActiveRecord::Schema.define(version: 20160624151257) do
|
|||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "payments", force: :cascade 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.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "programs", force: :cascade do |t|
|
||||
t.integer "conference_id"
|
||||
t.integer "rating", default: 0
|
||||
|
|
@ -396,6 +407,7 @@ ActiveRecord::Schema.define(version: 20160624151257) do
|
|||
t.datetime "created_at"
|
||||
t.integer "quantity", default: 1
|
||||
t.integer "user_id"
|
||||
t.integer "payment_id"
|
||||
end
|
||||
|
||||
create_table "tickets", force: :cascade do |t|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue