Commit c4179756 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Remove unnecessary dependent: :destroy

parent 248970ab
......@@ -3,8 +3,8 @@ module EE
extend ActiveSupport::Concern
prepended do
has_many :referenced_issue_links, class_name: 'IssueLink', foreign_key: :source_id, dependent: :destroy
has_many :referred_by_issue_links, class_name: 'IssueLink', foreign_key: :target_id, dependent: :destroy
has_many :referenced_issue_links, class_name: 'IssueLink', foreign_key: :source_id
has_many :referred_by_issue_links, class_name: 'IssueLink', foreign_key: :target_id
has_many :referenced_issues, through: :referenced_issue_links, source: :target
has_many :referred_by_issues, through: :referred_by_issue_links, source: :source
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment