gab-social/db/migrate/20190512160135_create_trans...

14 lines
382 B
Ruby
Raw Normal View History

2019-07-02 08:10:25 +01:00
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