Commit 24a0e86d authored by Stan Hu's avatar Stan Hu

Remove deleted milestones from merge requests

Closes https://github.com/gitlabhq/gitlabhq/issues/9643
parent abaa65ef
class RemoveInvalidMilestonesFromMergeRequests < ActiveRecord::Migration
def up
execute("UPDATE merge_requests SET milestone_id = NULL where milestone_id NOT IN (SELECT id FROM milestones)")
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