summaryrefslogtreecommitdiff
path: root/app/models/label.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/label.rb')
-rw-r--r--app/models/label.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/models/label.rb b/app/models/label.rb
index b8dc11a5245..67932211ac5 100644
--- a/app/models/label.rb
+++ b/app/models/label.rb
@@ -7,10 +7,7 @@ class Label < ActiveRecord::Base
validates :project, presence: true
# Dont allow '?', '&', and ',' for label titles
- validates :title,
- presence: true,
- format: { with: /\A[^&\?,&]*\z/ },
- uniqueness: true
+ validates :title, presence: true, format: { with: /\A[^&\?,&]*\z/ }
scope :order_by_name, -> { reorder("labels.title ASC") }