Commit 91bbfbc3 authored by Jonathan Schafer's avatar Jonathan Schafer

Remove unnecessary comments

parent a446cd93
# frozen_string_literal: true # 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] class AddRequestResponseToSupporingMessage < ActiveRecord::Migration[6.1]
def change def change
change_column_null(:vulnerability_finding_evidence_requests, :vulnerability_finding_evidence_id, true) change_column_null(:vulnerability_finding_evidence_requests, :vulnerability_finding_evidence_id, true)
......
...@@ -11,11 +11,13 @@ module Vulnerabilities ...@@ -11,11 +11,13 @@ module Vulnerabilities
belongs_to :evidence, belongs_to :evidence,
class_name: 'Vulnerabilities::Finding::Evidence', class_name: 'Vulnerabilities::Finding::Evidence',
inverse_of: :request, inverse_of: :request,
foreign_key: 'vulnerability_finding_evidence_id' foreign_key: 'vulnerability_finding_evidence_id',
optional: true
belongs_to :supporting_message, belongs_to :supporting_message,
class_name: 'Vulnerabilities::Finding::Evidence::SupportingMessage', class_name: 'Vulnerabilities::Finding::Evidence::SupportingMessage',
inverse_of: :request, inverse_of: :request,
foreign_key: 'vulnerability_finding_evidence_supporting_message_id' foreign_key: 'vulnerability_finding_evidence_supporting_message_id',
optional: true
has_many :headers, has_many :headers,
class_name: 'Vulnerabilities::Finding::Evidence::Header', class_name: 'Vulnerabilities::Finding::Evidence::Header',
......
...@@ -11,11 +11,13 @@ module Vulnerabilities ...@@ -11,11 +11,13 @@ module Vulnerabilities
belongs_to :evidence, belongs_to :evidence,
class_name: 'Vulnerabilities::Finding::Evidence', class_name: 'Vulnerabilities::Finding::Evidence',
inverse_of: :response, inverse_of: :response,
foreign_key: 'vulnerability_finding_evidence_id' foreign_key: 'vulnerability_finding_evidence_id',
optional: true
belongs_to :supporting_message, belongs_to :supporting_message,
class_name: 'Vulnerabilities::Finding::Evidence::SupportingMessage', class_name: 'Vulnerabilities::Finding::Evidence::SupportingMessage',
inverse_of: :response, inverse_of: :response,
foreign_key: 'vulnerability_finding_evidence_supporting_message_id' foreign_key: 'vulnerability_finding_evidence_supporting_message_id',
optional: true
has_many :headers, has_many :headers,
class_name: 'Vulnerabilities::Finding::Evidence::Header', class_name: 'Vulnerabilities::Finding::Evidence::Header',
......
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