Created
April 10, 2018 09:36
-
-
Save joeyates/487f3399e75aac4e948246e928f379a5 to your computer and use it in GitHub Desktop.
Use Chewy to extract a date range
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
bars = | |
FooIndex::Bar.all. | |
query(range: {start_date: {lt: "2018-03-31"}}). | |
query(range: {end_date: {gt: "2018-03-31"}}). | |
load.to_a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment