Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c4179756
Commit
c4179756
authored
May 31, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary dependent: :destroy
parent
248970ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/ee/issue.rb
app/models/ee/issue.rb
+2
-2
No files found.
app/models/ee/issue.rb
View file @
c4179756
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment