diff options
Diffstat (limited to 'app/models/incident_management/timeline_event_tag.rb')
-rw-r--r-- | app/models/incident_management/timeline_event_tag.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/incident_management/timeline_event_tag.rb b/app/models/incident_management/timeline_event_tag.rb index 2064ccc8c5e..75d23f05e4e 100644 --- a/app/models/incident_management/timeline_event_tag.rb +++ b/app/models/incident_management/timeline_event_tag.rb @@ -17,7 +17,7 @@ module IncidentManagement through: :timeline_event_tag_links validates :name, presence: true, format: { with: /\A[^,]+\z/ } - validates :name, uniqueness: { scope: :project_id } + validates :name, uniqueness: { scope: :project_id, case_sensitive: false } validates :name, length: { maximum: 255 } scope :by_names, -> (tag_names) { where(name: tag_names) } |