gitlab-org--gitlab-foss/db/post_migrate/20220222192524_create_not_n...

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

14 lines
364 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class CreateNotNullConstraintReleasesTag < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
def up
add_not_null_constraint :releases, :tag, constraint_name: 'releases_not_null_tag', validate: false
end
def down
remove_not_null_constraint :releases, :tag, constraint_name: 'releases_not_null_tag'
end
end