Added up and down migration for weekly task data.
This commit is contained in:
parent
2e1a3eb47f
commit
ef329b5647
4 changed files with 62 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ class Task < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def exclude_from_periodic_task_group
|
||||
if changed? and not new_record?
|
||||
if changed? and not new_record? and not changed.include? 'periodic_task_group_id'
|
||||
self.periodic_task_group = nil
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue