lockaz_app/migrations/00560_create_p_bank_accounts.rb
Nicolas Bally f20fe482c6 initial
2020-04-06 10:38:07 +02:00

19 lines
542 B
Ruby

class CreatePBankAccounts < ActiveRecord::Migration[6.0]
def change
create_table :p_bank_accounts do |t|
t.references :p_bank, index: true
t.string :iban
t.string :bic
t.string :compta_cpt
t.string :compta_journ
t.string :compta_aux
t.references :p_fournisseur, index: true
t.references :p_customer, index: true
t.boolean :owner, :default => false
t.references :data_file, index: true
t.timestamps
end
end
end