diff options
Diffstat (limited to 'db/migrate/20230810132301_add_has_remediations_to_vulnerability_reads.rb')
-rw-r--r-- | db/migrate/20230810132301_add_has_remediations_to_vulnerability_reads.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20230810132301_add_has_remediations_to_vulnerability_reads.rb b/db/migrate/20230810132301_add_has_remediations_to_vulnerability_reads.rb new file mode 100644 index 00000000000..d4648378c97 --- /dev/null +++ b/db/migrate/20230810132301_add_has_remediations_to_vulnerability_reads.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class AddHasRemediationsToVulnerabilityReads < Gitlab::Database::Migration[2.1] + enable_lock_retries! + + def up + add_column :vulnerability_reads, :has_remediations, :boolean, default: false, null: false + end + + def down + remove_column :vulnerability_reads, :has_remediations + end +end |