summaryrefslogtreecommitdiffstats
path: root/app/models/member.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-04-01 14:32:23 +0000
committerGo MAEDA <maeda@farend.jp>2021-04-01 14:32:23 +0000
commit2a564a1376b692c200d342acf236567ae1f12101 (patch)
tree7a4fa7f4bfaad072babffc9b893fbcbd26d6aaef /app/models/member.rb
parent282adb80d4436f126cf8d292016a041c7363bf96 (diff)
downloadredmine-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/member.rb')
-rw-r--r--app/models/member.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/member.rb b/app/models/member.rb
index 9c4044e15..f7b4038f5 100644
--- a/app/models/member.rb
+++ b/app/models/member.rb
@@ -25,7 +25,7 @@ class Member < ActiveRecord::Base
belongs_to :project
validates_presence_of :principal, :project
- validates_uniqueness_of :user_id, :scope => :project_id
+ validates_uniqueness_of :user_id, :scope => :project_id, :case_sensitive => true
validate :validate_role
before_destroy :set_issue_category_nil, :remove_from_project_default_assigned_to