foodsoft/db/migrate/20190100000009_create_bank_gateways.rb

13 lines
308 B
Ruby
Raw Normal View History

2021-03-05 12:43:40 +01:00
class CreateBankGateways < ActiveRecord::Migration[4.2]
def change
create_table :bank_gateways do |t|
t.string :name, null: false
t.string :url, null: false
t.string :authorization
t.integer :unattended_user_id
end
add_reference :bank_accounts, :bank_gateway
end
end