Add NOT NULL on analytics_devops_adoption_segments#namespace_id

What does this MR do and why?

Add NOT NULL on adas#namespace_id

Add NOT NULL to analytics_devops_adoption_segments#namespace_id

Addresses #555251

Follows up on cc6cb9bd

There are no rows with analytics_devops_adoption_segments#namespace_id IS NULL on gitlab.com (https://postgres.ai/console/gitlab/gitlab-production-main/sessions/42394/commands/129936)

The attribute is already enforced in the model (https://gitlab.com/gitlab-org/gitlab/-/blob/11d074d349a6f538ec6513ce6ac034832ae7ed91/ee/app/models/analytics/devops_adoption/enabled_namespace.rb\#L13).

MR acceptance checklist

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

Merge request reports

Loading