heylium_app/db/migrate/20151208203327_create_tr_payment_bank_accounts.rb
Nicolas Bally 8e18de4077 initial
2016-08-03 00:22:29 +02:00

14 lines
377 B
Ruby
Executable File

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