diff --git a/app/models/course_group.rb b/app/models/course_group.rb index c5c2f5c85..144c43c6e 100644 --- a/app/models/course_group.rb +++ b/app/models/course_group.rb @@ -12,7 +12,8 @@ class CourseGroup < ActiveRecord::Base before_destroy :set_member_nil attr_accessible :name - validates :name, :presence => true, :length => {:maximum => 20}, :uniqueness => true + validates :name, :presence => true, :length => {:maximum => 20}, + :uniqueness => {case_sensitive: false} def set_member_nil if self.members && self.members.count > 0 self.members.update_all("course_group_id = 0")