Add model for BankGateway
This commit is contained in:
parent
7e60ce6ce2
commit
87fe9ccdb1
6 changed files with 45 additions and 0 deletions
12
db/migrate/20190100000009_create_bank_gateways.rb
Normal file
12
db/migrate/20190100000009_create_bank_gateways.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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
|
||||
|
|
@ -89,6 +89,14 @@ ActiveRecord::Schema.define(version: 2021_02_05_090257) do
|
|||
t.decimal "balance", precision: 12, scale: 2, default: "0.0", null: false
|
||||
t.datetime "last_import"
|
||||
t.string "import_continuation_point"
|
||||
t.integer "bank_gateway_id"
|
||||
end
|
||||
|
||||
create_table "bank_gateways", id: :integer, force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.string "url", null: false
|
||||
t.string "authorization"
|
||||
t.integer "unattended_user_id"
|
||||
end
|
||||
|
||||
create_table "bank_transactions", id: :integer, force: :cascade do |t|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue