Validate the NOT NULL constraint on Users#preferred_language
Update the not null constraint on the Users#preferred_language to validate the constraint.
class ValidateNotNullConstraintOnUsersPreferredLanguage < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
validate_not_null_constraint :users, :preferred_language
end
def down
# no-op
end
end