Added missing migration files.
This commit is contained in:
parent
c27127c745
commit
7942ccfae6
2 changed files with 28 additions and 0 deletions
9
db/migrate/20130624084223_remove_weekly_from_tasks.rb
Normal file
9
db/migrate/20130624084223_remove_weekly_from_tasks.rb
Normal 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
|
19
db/migrate/20130624085246_remove_weekly_task_from_groups.rb
Normal file
19
db/migrate/20130624085246_remove_weekly_task_from_groups.rb
Normal 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
|
Loading…
Reference in a new issue