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>2022-02-21 03:18:15 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-21 03:18:15 +0300
commiteb8607408da45fd1174e9f42579f433e61bdd260 (patch)
tree29bdc06a8b5132ce19b5bb00503d064ce162b8cd /app/models/projects
parentf29c140c1cb7fc8590199ee1f4ab62707e036244 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/projects')
-rw-r--r--app/models/projects/topic.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/projects/topic.rb b/app/models/projects/topic.rb
index 78bc2df2e1e..235246b1f1d 100644
--- a/app/models/projects/topic.rb
+++ b/app/models/projects/topic.rb
@@ -7,7 +7,8 @@ module Projects
include Avatarable
include Gitlab::SQL::Pattern
- validates :name, presence: true, uniqueness: true, length: { maximum: 255 }
+ validates :name, presence: true, length: { maximum: 255 }
+ validates :name, uniqueness: { case_sensitive: false }, if: :name_changed?
validates :description, length: { maximum: 1024 }
has_many :project_topics, class_name: 'Projects::ProjectTopic'