lib/tasks/default.rake
# Search for & print matching email address.
# Presumes we are in a Rails environment
Search for & print matching email address.
Presumes we are in a Rails environment
Search for & print matching email address . Presumes we are in a Rails environment
def real_search_email(email)
  puts "Searching for email '#{email}'; matching ids and names are:"
  results = User.where(email: email)
                .select('id, name, encrypted_email, encrypted_email_iv')
                .pluck(:id, :name)
  puts results
  puts 'End of results.'
end
def real_search_email ( email ) puts "Searching for email '#{email}'; matching ids and names are:" results = User . where ( email : email ) . select ( 'id, name, encrypted_email, encrypted_email_iv' ) . pluck ( :id , :name ) puts results puts 'End of results.' end
Search for & print matching email address.
Search for & print matching email address .
email
<not_specific>