Suppose you have two models – one for Files and anther for Downloads
– such that a file has_many => :downloads
If you wanted to get a count of the downloads for the current month
and the two previous months, is there a way to get that data from one
query? Something like: