Skip to content

Commit

Permalink
Merge pull request #130 from Fryguy/remove_deprecation
Browse files Browse the repository at this point in the history
Remove deprecation warning for destroy_all
(cherry picked from commit 0f8e525)
  • Loading branch information
gtanzillo authored and simaishi committed Nov 17, 2017
1 parent 58ac335 commit ecd0641
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def up

def down
say_with_time("Deleting all tasks which have job") do
MiqTask.destroy_all("id in (select miq_task_id from jobs)")
MiqTask.where("id in (select miq_task_id from jobs)").delete_all
Job.update_all(:miq_task_id => nil)
end
end
Expand Down

0 comments on commit ecd0641

Please sign in to comment.