Skip to content
Snippets Groups Projects
Commit 8d21aadf authored by Shane Maglangit's avatar Shane Maglangit
Browse files

Add project organization_id not null constraint

parent 75da9045
Branches andrey-remove-group-caching
No related tags found
No related merge requests found
# frozen_string_literal: true
class AddProjectOrganizationIdNotNullConstraint < Gitlab::Database::Migration[2.2]
milestone '17.6'
restrict_gitlab_migration gitlab_schema: :gitlab_main_cell
disable_ddl_transaction!
def up
add_not_null_constraint :projects, :organization_id
end
def down
remove_not_null_constraint :projects, :organization_id
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment