What is this error all about? I'm running a standard query like so:
time_range = (1.month.ago.beginning_of_month..1.month.ago.end_of_month)
Feed.find(:all, :conditions => ['created_at = ? AND id not in (?)', time_range, [1,2,3]]).count
Any ideas? Thanks
I had this problem and the solution was to add "to_date" so that it iterates over the days, like so:
time_range = (1.month.ago.beginning_of_month.to_date..1.month.ago.end_of_month.to_date)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With