move stripe API call to model, schema changes

This commit is contained in:
Rishabh Saxena 2016-07-28 15:27:30 +05:30
parent 47e16e5653
commit be6d046154
4 changed files with 46 additions and 35 deletions

View file

@ -264,9 +264,9 @@ ActiveRecord::Schema.define(version: 20160704092023) do
end
create_table "payments", force: :cascade do |t|
t.string "last4", null: false
t.integer "amount", null: false
t.string "authorization_code", null: false
t.string "last4"
t.integer "amount"
t.string "authorization_code"
t.integer "status", default: 0, null: false
t.integer "user_id", null: false
t.integer "conference_id", null: false