From 15e32210a19914ea9ca8df75ec84d96caaf4c35b Mon Sep 17 00:00:00 2001 From: Kerri Miller Date: Mon, 4 Aug 2025 14:56:21 -0700 Subject: [PATCH] Prefer add_not_null_constraint over change_column_null on add --- doc/development/database/not_null_constraints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/development/database/not_null_constraints.md b/doc/development/database/not_null_constraints.md index b46326fe76c3e3..33a21b712251a6 100644 --- a/doc/development/database/not_null_constraints.md +++ b/doc/development/database/not_null_constraints.md @@ -575,7 +575,7 @@ class DropNotNullConstraintFromLabelsProjectsLimit < Gitlab::Database::Migration end def down - change_column_null :labels, :projects_limit, false + add_not_null_constraint :labels, :projects_limit end end ``` -- GitLab