app/models/phcmemberspro/directory/category.rb in phcmemberspro-6.5.1 vs app/models/phcmemberspro/directory/category.rb in phcmemberspro-6.5.2
- old
+ new
@@ -5,10 +5,10 @@
has_many :catlists, class_name: 'Directory::Catlist'
# Validation for Form Fields
validates :catname,
presence: true,
- uniqueness: {scope: :user_id},
+ uniqueness: {scope: :oganization_id},
length: { minimum: 3 }
end
end