Skip to content
Snippets Groups Projects
Commit 130b03c2 authored by Oswaldo Ferreir's avatar Oswaldo Ferreir
Browse files

Merge branch 'sh-fix-milestone-id-migration' into 'master'

Fix missing WHERE clause in 20171106135924_issues_milestone_id_foreign_key migration

Closes gitlab-com/infrastructure#3416

See merge request gitlab-org/gitlab-ce!15997
parents f7a9ced2 9611a410
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -16,6 +16,7 @@ class IssuesMilestoneIdForeignKey < ActiveRecord::Migration
 
def self.with_orphaned_milestones
where('NOT EXISTS (SELECT true FROM milestones WHERE milestones.id = issues.milestone_id)')
.where('milestone_id IS NOT NULL')
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment