debian-mirror-gitlab/db/post_migrate/20220606060850_add_not_null_constraint_on_routes_namespace_id.rb

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

14 lines
299 B
Ruby
Raw Normal View History

2022-07-23 23:45:48 +05:30
# frozen_string_literal: true
class AddNotNullConstraintOnRoutesNamespaceId < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
def up
add_not_null_constraint :routes, :namespace_id, validate: false
end
def down
remove_not_null_constraint :routes, :namespace_id
end
end