ballalama3_app/db/migrate/20151208203327_create_tr_payment_bank_accounts.rb
Nicolas Bally bc774b8159 initial
2016-12-01 10:54:16 +01:00

14 lines
377 B
Ruby

class CreateTrPaymentBankAccounts < ActiveRecord::Migration
def change
create_table :tr_payment_bank_accounts do |t|
t.string :name
t.string :code
t.timestamps null: false
end
TrPaymentBankAccount.create(:name => "Crédit coopératif", :code => "cc")
TrPaymentBankAccount.create(:name => "La banque postale", :code => "lbp")
end
end