Commit fa2273cf authored by Mark Chao's avatar Mark Chao

Fix migration to cover end_date nil cases

parent dfe844e9
...@@ -56,7 +56,7 @@ class UpdateEpicDatesFromMilestones < ActiveRecord::Migration ...@@ -56,7 +56,7 @@ class UpdateEpicDatesFromMilestones < ActiveRecord::Migration
end end
def up def up
Epic.where(start_date: nil).find_each do |epic| Epic.where('start_date IS NULL OR end_date IS NULL').find_each do |epic|
epic.update_dates epic.update_dates
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment