Gab-Social/db/migrate/20190512160135_create_transactions.rb
2019-07-02 03:10:25 -04:00

14 lines
382 B
Ruby

class CreateTransactions < ActiveRecord::Migration[5.2]
def change
create_table :transactions do |t|
t.timestamps
t.integer :account_id, null: false
t.column :payment_type, :string
t.string :provider_type, null: true
t.text :provider_response
t.integer :amount, null: false
t.boolean :success, null: false, default: false
end
end
end