class RuboCop::Cop::Rails::UniqueValidationWithoutIndex

def condition_hash_part?(pairs, keys:)

def condition_hash_part?(pairs, keys:)
  pairs.each_pair.any? do |pair|
    key = pair.key
    next unless key.sym_type?
    keys.include?(key.value)
  end
end