6 lines
229 B
Ruby
6 lines
229 B
Ruby
# rubocop:disable all
|
|
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
|