diff options
author | Go MAEDA <maeda@farend.jp> | 2021-04-01 14:32:23 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-04-01 14:32:23 +0000 |
commit | 2a564a1376b692c200d342acf236567ae1f12101 (patch) | |
tree | 7a4fa7f4bfaad072babffc9b893fbcbd26d6aaef /app/models/token.rb | |
parent | 282adb80d4436f126cf8d292016a041c7363bf96 (diff) | |
download | redmine-2a564a1376b692c200d342acf236567ae1f12101.tar.gz redmine-2a564a1376b692c200d342acf236567ae1f12101.zip |
DEPRECATION WARNING: Uniqueness validator will no longer enforce case sensitive comparison in Rails 6.1. (#29914, #32897).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@20880 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/token.rb')
-rw-r--r-- | app/models/token.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/token.rb b/app/models/token.rb index 5f91cfa95..5fcd01d7e 100644 --- a/app/models/token.rb +++ b/app/models/token.rb @@ -19,7 +19,7 @@ class Token < ActiveRecord::Base belongs_to :user - validates_uniqueness_of :value + validates_uniqueness_of :value, :case_sensitive => true before_create :delete_previous_tokens, :generate_new_token |