Created
January 26, 2016 09:20
-
-
Save the-undefined/a9866e9b3c0ce42a4acb to your computer and use it in GitHub Desktop.
Make a query on the year of a date column (rails / PostgreSQL)
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
TimeWindow.where(%{EXTRACT(YEAR FROM start_date) = ?}, 2020) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment