foodsoft/db/migrate/20130624085246_remove_weekly_task_from_groups.rb

20 lines
639 B
Ruby
Raw Normal View History

class RemoveWeeklyTaskFromGroups < ActiveRecord::Migration[4.2]
2013-06-24 12:02:22 +02:00
def up
remove_column :groups, :weekly_task
remove_column :groups, :weekday
remove_column :groups, :task_name
remove_column :groups, :task_description
remove_column :groups, :task_required_users
remove_column :groups, :task_duration
end
def down
add_column :groups, :task_duration, :integer
add_column :groups, :task_required_users, :integer
add_column :groups, :task_description, :string
add_column :groups, :task_name, :string
add_column :groups, :weekday, :integer
add_column :groups, :weekly_task, :boolean
end
end