Created
December 19, 2018 06:43
-
-
Save vigneshblue/2237293d9451b3bb15e26d4dc00b8ecd to your computer and use it in GitHub Desktop.
Rails where query to find week day with pg
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
"extract(dow from starting_time::TIMESTAMPTZ AT TIME ZONE INTERVAL '#{Time.zone.now.formatted_offset}'::INTERVAL) = ?" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment