Created
August 19, 2014 21:18
-
-
Save cybersamx/8932e12bb7fe4c1662ad to your computer and use it in GitHub Desktop.
Rails ActiveRecord exotic data queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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