debian-mirror-gitlab/db/migrate/20210713223941_remove_null_constraint_from_security_findings.rb
2021-10-27 15:23:28 +05:30

12 lines
300 B
Ruby

# 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