Skip to content

Add NOT NULL constraint for `remote_mirrors.project_id`

What does this MR do and why?

Contributes to #464459

Previous MR !146640 (merged) introduced a migration to drop any possible invalid remote mirror records without a project_id.

At this point, it should be safe to proceed with adding a NOT NULL constraint and Rails validation for remote mirror projects.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Vasilii Iakliushin

Merge request reports