foodsoft/db/migrate/20121115073715_create_periodic_task_groups.rb

13 lines
263 B
Ruby

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