Add accounts and activities

This commit is contained in:
Martin Lensment 2015-04-13 15:17:34 +03:00
parent fb318e37cb
commit b5521594ce
8 changed files with 170 additions and 1 deletions

View file

@ -0,0 +1,15 @@
class CreateAccounts < ActiveRecord::Migration
def change
create_table :accounts do |t|
t.integer :registrar_id
t.string :account_type
t.decimal :balance
t.timestamps
end
Registrar.all.each do |x|
Account.create(registrar_id: x.id, account_type: Account::CASH)
end
end
end