Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-12-13 00:13:31 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-13 00:13:31 +0300
commit42a4fe5b394e010b3f512a5a138359618295193b (patch)
tree9552d72a17537c74f813d489e822e09e91d1dc3c /app/models/project_setting.rb
parent6121ad5af38294f12db08f13aec122c3dbef583a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/project_setting.rb')
-rw-r--r--app/models/project_setting.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project_setting.rb b/app/models/project_setting.rb
index f684feacace..e3ffe2347d8 100644
--- a/app/models/project_setting.rb
+++ b/app/models/project_setting.rb
@@ -39,6 +39,7 @@ class ProjectSetting < ApplicationRecord
validates :issue_branch_template, length: { maximum: Issue::MAX_BRANCH_TEMPLATE }
validates :target_platforms, inclusion: { in: ALLOWED_TARGET_PLATFORMS }
validates :suggested_reviewers_enabled, inclusion: { in: [true, false] }
+ validates :code_suggestions, allow_nil: false, inclusion: { in: [true, false] }
validates :pages_unique_domain,
uniqueness: { if: -> { pages_unique_domain.present? } },