diff --git a/app/models/miq_group.rb b/app/models/miq_group.rb index eab91e1f5e8..1c6b1dedc83 100644 --- a/app/models/miq_group.rb +++ b/app/models/miq_group.rb @@ -19,7 +19,7 @@ class MiqGroup < ApplicationRecord delegate :self_service?, :limited_self_service?, :disallowed_roles, :to => :miq_user_role, :allow_nil => true - validates :description, :presence => true, :unique_within_region => true + validates :description, :presence => true, :unique_within_region => { :match_case => false } validate :validate_default_tenant, :on => :update, :if => :tenant_id_changed? before_destroy :ensure_can_be_destroyed after_destroy :reset_current_group_for_users diff --git a/app/models/miq_user_role.rb b/app/models/miq_user_role.rb index aa4db4de9ae..037fcd33285 100644 --- a/app/models/miq_user_role.rb +++ b/app/models/miq_user_role.rb @@ -9,8 +9,7 @@ class MiqUserRole < ApplicationRecord virtual_column :vm_restriction, :type => :string - validates_presence_of :name - validates_uniqueness_of :name + validates :name, :presence => true, :uniqueness => { :case_sensitive => false } serialize :settings