debian-mirror-gitlab/db/post_migrate/20220222191845_remove_not_null_constraint_for_security_scan_succeeded.rb
2022-05-07 20:08:51 +05:30

12 lines
333 B
Ruby

# frozen_string_literal: true
class RemoveNotNullConstraintForSecurityScanSucceeded < Gitlab::Database::Migration[1.0]
def up
change_column_null :analytics_devops_adoption_snapshots, :security_scan_succeeded, true
end
def down
# There may now be nulls in the table, so we cannot re-add the constraint here.
end
end