Merge pull request #1108 from rishabhs95/stripe

Online payment feature - direct stripe integration
This commit is contained in:
Hernán Schmidt 2016-08-18 16:04:11 +02:00 committed by GitHub
commit 32019a11e1
35 changed files with 523 additions and 110 deletions

View file

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