improve Stripe error rescue. modify tests.

This commit is contained in:
Rishabh Saxena 2016-07-28 20:42:04 +05:30
parent 52c30af642
commit 1f9338735c
6 changed files with 43 additions and 36 deletions

View file

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