summaryrefslogtreecommitdiff
path: root/db/migrate/20210713223941_remove_null_constraint_from_security_findings.rb
blob: f0b9addb5f26d51409394544eb874fcd34a54b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class RemoveNullConstraintFromSecurityFindings < ActiveRecord::Migration[6.1]
  def up
    change_column_null :security_findings, :project_fingerprint, true
  end

  def down
    # no-op, it can not be reverted due to existing records that might not be valid
  end
end