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
91bbfbc3
Commit
91bbfbc3
authored
Jul 20, 2021
by
Jonathan Schafer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary comments
parent
a446cd93
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
db/migrate/20210719182944_add_request_response_to_supporing_message.rb
...210719182944_add_request_response_to_supporing_message.rb
+0
-3
ee/app/models/vulnerabilities/finding/evidence/request.rb
ee/app/models/vulnerabilities/finding/evidence/request.rb
+4
-2
ee/app/models/vulnerabilities/finding/evidence/response.rb
ee/app/models/vulnerabilities/finding/evidence/response.rb
+4
-2
No files found.
db/migrate/20210719182944_add_request_response_to_supporing_message.rb
View file @
91bbfbc3
# frozen_string_literal: true
# See https://docs.gitlab.com/ee/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddRequestResponseToSupporingMessage
<
ActiveRecord
::
Migration
[
6.1
]
def
change
change_column_null
(
:vulnerability_finding_evidence_requests
,
:vulnerability_finding_evidence_id
,
true
)
...
...
ee/app/models/vulnerabilities/finding/evidence/request.rb
View file @
91bbfbc3
...
...
@@ -11,11 +11,13 @@ module Vulnerabilities
belongs_to
:evidence
,
class_name:
'Vulnerabilities::Finding::Evidence'
,
inverse_of: :request
,
foreign_key:
'vulnerability_finding_evidence_id'
foreign_key:
'vulnerability_finding_evidence_id'
,
optional:
true
belongs_to
:supporting_message
,
class_name:
'Vulnerabilities::Finding::Evidence::SupportingMessage'
,
inverse_of: :request
,
foreign_key:
'vulnerability_finding_evidence_supporting_message_id'
foreign_key:
'vulnerability_finding_evidence_supporting_message_id'
,
optional:
true
has_many
:headers
,
class_name:
'Vulnerabilities::Finding::Evidence::Header'
,
...
...
ee/app/models/vulnerabilities/finding/evidence/response.rb
View file @
91bbfbc3
...
...
@@ -11,11 +11,13 @@ module Vulnerabilities
belongs_to
:evidence
,
class_name:
'Vulnerabilities::Finding::Evidence'
,
inverse_of: :response
,
foreign_key:
'vulnerability_finding_evidence_id'
foreign_key:
'vulnerability_finding_evidence_id'
,
optional:
true
belongs_to
:supporting_message
,
class_name:
'Vulnerabilities::Finding::Evidence::SupportingMessage'
,
inverse_of: :response
,
foreign_key:
'vulnerability_finding_evidence_supporting_message_id'
foreign_key:
'vulnerability_finding_evidence_supporting_message_id'
,
optional:
true
has_many
:headers
,
class_name:
'Vulnerabilities::Finding::Evidence::Header'
,
...
...
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