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

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