debian-mirror-gitlab/db/post_migrate/20220326163653_add_not_null_contraint_to_project_namespace_id.rb
2022-06-21 17:19:12 +05:30

14 lines
319 B
Ruby

# frozen_string_literal: true
class AddNotNullContraintToProjectNamespaceId < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
def up
add_not_null_constraint :projects, :project_namespace_id, validate: false
end
def down
remove_not_null_constraint :projects, :project_namespace_id
end
end