diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-09-06 20:02:51 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-09-06 20:02:51 +0300 |
commit | 342fa0f871e0f716e9cb1c0f80a2e0ab455d65c0 (patch) | |
tree | 21a6936ce1d1bd6a971edaa884149e57a77a6548 /app/models/label_link.rb | |
parent | a062de4ed4abab3ffc1c6bd620c663c534474bab (diff) |
Resolve "Migrate issue labels and milestone to related merge request"
Diffstat (limited to 'app/models/label_link.rb')
-rw-r--r-- | app/models/label_link.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/label_link.rb b/app/models/label_link.rb index 779657b25d5..1d93a55e8e9 100644 --- a/app/models/label_link.rb +++ b/app/models/label_link.rb @@ -3,7 +3,7 @@ class LabelLink < ActiveRecord::Base include Importable - belongs_to :target, polymorphic: true # rubocop:disable Cop/PolymorphicAssociations + belongs_to :target, polymorphic: true, inverse_of: :label_links # rubocop:disable Cop/PolymorphicAssociations belongs_to :label validates :target, presence: true, unless: :importing? |