diff options
Diffstat (limited to 'app/models/namespace_setting.rb')
-rw-r--r-- | app/models/namespace_setting.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/namespace_setting.rb b/app/models/namespace_setting.rb index aeb4d7a5694..3ac585a6957 100644 --- a/app/models/namespace_setting.rb +++ b/app/models/namespace_setting.rb @@ -13,6 +13,7 @@ class NamespaceSetting < ApplicationRecord enum enabled_git_access_protocol: { all: 0, ssh: 1, http: 2 }, _suffix: true validates :enabled_git_access_protocol, inclusion: { in: enabled_git_access_protocols.keys } + validates :code_suggestions, allow_nil: false, inclusion: { in: [true, false] } validate :allow_mfa_for_group validate :allow_resource_access_token_creation_for_group |