foodsoft/db/migrate/20130615073715_create_periodic_task_groups.rb

14 lines
268 B
Ruby
Raw Normal View History

class CreatePeriodicTaskGroups < ActiveRecord::Migration[4.2]
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