Skip to content

Instantly share code, notes, and snippets.

@cybersamx
Created August 19, 2014 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cybersamx/8932e12bb7fe4c1662ad to your computer and use it in GitHub Desktop.
Save cybersamx/8932e12bb7fe4c1662ad to your computer and use it in GitHub Desktop.
Rails ActiveRecord exotic data queries
# Unique values of a column
Address.uniq.pluck(:state)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment