debian-mirror-gitlab/db/migrate/20210713223941_remove_null_constraint_from_security_findings.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
300 B
Ruby
Raw Normal View History

2021-10-27 15:23:28 +05:30
# 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