add stripe-gem and payment schema

This commit is contained in:
Rishabh Saxena 2016-07-27 13:18:50 +05:30
parent 2b4bf2fff7
commit b639d2eec5
5 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,14 @@
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.integer :status, default: 0, null: false
t.integer :user_id, null: false
t.integer :conference_id, null: false
t.timestamps null: false
end
end
end

View file

@ -0,0 +1,5 @@
class AddPaymentIdToTicketPurchases < ActiveRecord::Migration
def change
add_column :ticket_purchases, :payment_id, :integer
end
end