summaryrefslogtreecommitdiffstats
path: root/app/models/tracker.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-01-28 09:49:14 +0000
committerGo MAEDA <maeda@farend.jp>2020-01-28 09:49:14 +0000
commit10bb12e09f81dcc56f7a11342b841b9b7cf8d53e (patch)
tree69815d31ef0e7535a71c328009c88f52e7d1a126 /app/models/tracker.rb
parentafe9b9b31d925eb4ee05f31e8391c797c7b87028 (diff)
downloadredmine-10bb12e09f81dcc56f7a11342b841b9b7cf8d53e.tar.gz
redmine-10bb12e09f81dcc56f7a11342b841b9b7cf8d53e.zip
Fix 'DEPRECATION WARNING: Uniqueness validator will no longer enforce case sensitive comparison in Rails 6.1.' (#32897).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19478 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/tracker.rb')
-rw-r--r--app/models/tracker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tracker.rb b/app/models/tracker.rb
index a3357866d..5785f47bd 100644
--- a/app/models/tracker.rb
+++ b/app/models/tracker.rb
@@ -36,7 +36,7 @@ class Tracker < ActiveRecord::Base
validates_presence_of :default_status
validates_presence_of :name
- validates_uniqueness_of :name
+ validates_uniqueness_of :name, :case_sensitive => false
validates_length_of :name, :maximum => 30
validates_length_of :description, :maximum => 255