class RuboCop::Cop::Rails::UniqueValidationWithoutIndex

def find_scope(pairs)

def find_scope(pairs)
  pairs.each_pair.find do |pair|
    key = pair.key
    next unless key.sym_type? && key.value == :scope
    break pair.value
  end
end