diff --git a/db/migrate/001_create_schedules.rb b/db/migrate/001_create_schedules.rb index abb797a69e00bd7687e6ad8654cd00b47a78053f..9a164f009b02cddfac287451571082b217bd24a4 100644 --- a/db/migrate/001_create_schedules.rb +++ b/db/migrate/001_create_schedules.rb @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- class CreateSchedules < ActiveRecord::Migration def self.up create_table (:schedules, diff --git a/db/migrate/002_create_recurring_items.rb b/db/migrate/002_create_recurring_items.rb index 6e3cf7189cbae649bed354acd25a362a8ba78655..db9cb279422969e6493745f09db547248589c097 100644 --- a/db/migrate/002_create_recurring_items.rb +++ b/db/migrate/002_create_recurring_items.rb @@ -1,24 +1,16 @@ +# -*- coding: utf-8 -*- class CreateRecurringItems < ActiveRecord::Migration def self.up create_table (:recurring_items, :options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8') do |t| t.column :description, :string - t.column :amount, :integer - t.column :startdate, :date - t.column :enddate, :date - t.column :schedule_id, :integer 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 + RecurringItem.create :description => "Pers lön" + RecurringItem.create :description => "Telia" end def self.down diff --git a/db/migrate/003_create_saldos.rb b/db/migrate/003_create_saldos.rb index 88259439dfea540e36608c725e6c6332585ff2bc..0a5219345e6462ee03f222901f827a748abd2ef0 100644 --- a/db/migrate/003_create_saldos.rb +++ b/db/migrate/003_create_saldos.rb @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- class CreateSaldos < ActiveRecord::Migration def self.up create_table (:saldos, diff --git a/db/migrate/004_create_accounts.rb b/db/migrate/004_create_accounts.rb index 8e7ad111e4e2b3a00688e9a59a53c16f4ad622e0..e145d922f8cbb8759e7c0eb5b44f807f0b288286 100644 --- a/db/migrate/004_create_accounts.rb +++ b/db/migrate/004_create_accounts.rb @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- class CreateAccounts < ActiveRecord::Migration def self.up create_table (:accounts,