summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-07-05 10:12:15 +0200
committerJan Provaznik <jprovaznik@gitlab.com>2018-07-05 10:12:15 +0200
commit1f320d1c50ed5001d915dbaece670664f242691d (patch)
treecc0528c5aab5b1405b75900571386675cc4f359b /lib
parentd785295fefa89315cdf0a72f572ed162678dcf1c (diff)
downloadgitlab-ce-1f320d1c50ed5001d915dbaece670664f242691d.tar.gz
Added tests for MRs
Diffstat (limited to 'lib')
-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