diff --git a/db/migrate/002_create_recurring_items.rb b/db/migrate/002_create_recurring_items.rb index e1c51cc66d6e3ecb99c7a2015672532e5f117f34..6e3cf7189cbae649bed354acd25a362a8ba78655 100644 --- a/db/migrate/002_create_recurring_items.rb +++ b/db/migrate/002_create_recurring_items.rb @@ -11,6 +11,14 @@ class CreateRecurringItems < ActiveRecord::Migration t.column :created_on, :timestamp t.column :updated_on, :timestamp end + + RecurringItem.create :description => "Pers lön", :amount => "22200", + :startdate => Date.civil(2006, 8, 25), + :schedule_id => Schedule.find_by_name("Månad").id + + RecurringItem.create :description => "Telia", :amount => "-1200", + :startdate => Date.civil(2006, 9, 10), + :schedule_id => Schedule.find_by_name("Kvartal").id end def self.down diff --git a/db/migrate/004_create_accounts.rb b/db/migrate/004_create_accounts.rb index 7bf132171798022b17b316661b677d55c2fb20e8..8e7ad111e4e2b3a00688e9a59a53c16f4ad622e0 100644 --- a/db/migrate/004_create_accounts.rb +++ b/db/migrate/004_create_accounts.rb @@ -3,7 +3,17 @@ class CreateAccounts < ActiveRecord::Migration create_table (:accounts, :options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8') do |t| t.column :name, :string + t.column :shortterm, :boolean end + + Account.create :name => "Pers lönekonto", :shortterm => true + Account.create :name => "Pers VISA-kort", :shortterm => true + Account.create :name => "Pers transkonto", :shortterm => true + Account.create :name => "ICA kundkort", :shortterm => true + Account.create :name => "Kristinas lönekonto", :shortterm => true + Account.create :name => "Pers aktiefond (Banco)", :shortterm => false + Account.create :name => "Pers kapitalförsäkring", :shortterm => false + end def self.down