Add not null constraint on project_namespace_id column
After project namespaces are backfilled, we should not have projects with project_namespace_id
being NULL
. To enforce that on DB level we should add a not null constraint check.
The constraint can be added once we are sure the backfill migration finished successfully, see ensure_batched_background_migration_is_finished
migration helper.
Edited by Alexandru Croitor