summaryrefslogtreecommitdiff
path: root/lib/gitlab
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/background_migration/fix_cross_project_label_links.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/background_migration/fix_cross_project_label_links.rb b/lib/gitlab/background_migration/fix_cross_project_label_links.rb
index f210734c777..8a50b15cfae 100644
--- a/lib/gitlab/background_migration/fix_cross_project_label_links.rb
+++ b/lib/gitlab/background_migration/fix_cross_project_label_links.rb
@@ -106,7 +106,7 @@ module Gitlab
next unless matching_label
- LabelLink.find(label.label_link_id).update!(label_id: matching_label.id)
+ LabelLink.update(label.label_link_id, label_id: matching_label.id)
end
end