Created
November 10, 2017 07:19
-
-
Save sudhirsb2003/7564fd2eca8b852d8fac4e982a387898 to your computer and use it in GitHub Desktop.
Acvtive Record Commands
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
Interval Queries (Basically to find Age range) | |
User.where(%q{created_at - birthdate < interval '13 years'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment