replace deprecated update_attributes with update
This commit is contained in:
parent
eb45a2bf21
commit
3ffdb424d5
28 changed files with 52 additions and 53 deletions
|
|
@ -27,7 +27,7 @@ class MoveWeeklyTasks < ActiveRecord::Migration[4.2]
|
|||
task_required_users: task.required_users,
|
||||
task_duration: task.duration
|
||||
}
|
||||
workgroup.update_attributes workgroup_attributes
|
||||
workgroup.update(workgroup_attributes)
|
||||
task_group.tasks.update_all weekly: true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue