vita_app/db/migrate/20151208203327_create_tr_payment_bank_accounts.rb
Nicolas Bally 1d3af87d4c initial
2016-04-28 10:07:08 +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