Added missing migration files.

This commit is contained in:
Robert Waltemath 2013-06-24 12:02:22 +02:00
parent c27127c745
commit 7942ccfae6
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,9 @@
class RemoveWeeklyFromTasks < ActiveRecord::Migration
def up
remove_column :tasks, :weekly
end
def down
add_column :tasks, :weekly, :boolean
end
end

View file

@ -0,0 +1,19 @@
class RemoveWeeklyTaskFromGroups < ActiveRecord::Migration
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