How to combine two conditions in a where clause?

前端 未结 3 676
梦毁少年i
梦毁少年i 2021-02-03 19:48

I have the following:

time_range = (1.month.ago.beginning_of_month..1.month.ago.end_of_month)

Comment.where(:created_at => time_range).count
<
3条回答
提交回复
热议问题