move stripe API call to model, schema changes
This commit is contained in:
parent
47e16e5653
commit
be6d046154
4 changed files with 46 additions and 35 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue