Gab Social. All are welcome.
This commit is contained in:
13
db/migrate/20190512160135_create_transactions.rb
Normal file
13
db/migrate/20190512160135_create_transactions.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user