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

@ -2,7 +2,7 @@ class CreatePayments < ActiveRecord::Migration
def change
create_table :payments 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