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/concerns/issuable.rb | |
parent | a062de4ed4abab3ffc1c6bd620c663c534474bab (diff) |
Resolve "Migrate issue labels and milestone to related merge request"
Diffstat (limited to 'app/models/concerns/issuable.rb')
-rw-r--r-- | app/models/concerns/issuable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/issuable.rb b/app/models/concerns/issuable.rb index f881ce2321c..7f14d78e976 100644 --- a/app/models/concerns/issuable.rb +++ b/app/models/concerns/issuable.rb @@ -49,7 +49,7 @@ module Issuable end end - has_many :label_links, as: :target, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent + has_many :label_links, as: :target, dependent: :destroy, inverse_of: :target # rubocop:disable Cop/ActiveRecordDependent has_many :labels, through: :label_links has_many :todos, as: :target, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent |