Added up and down migration for weekly task data.

This commit is contained in:
Robert Waltemath 2013-06-22 17:35:45 +02:00
parent 2e1a3eb47f
commit ef329b5647
4 changed files with 62 additions and 2 deletions

View file

@ -0,0 +1,13 @@
class CreatePeriodicTaskGroups < ActiveRecord::Migration
def change
create_table :periodic_task_groups do |t|
t.date :next_task_date
t.timestamps
end
change_table :tasks do |t|
t.references :periodic_task_group
end
end
end