在我的模型中,我有:
start = 3.weeks.ago
kliks = where(created_at: start.beginning_of_day..Time.zone.now)
kliks = kliks.group("date(created_at)")
如何计算每天的所有记录总数?
在我的模型中,我有:
start = 3.weeks.ago
kliks = where(created_at: start.beginning_of_day..Time.zone.now)
kliks = kliks.group("date(created_at)")
如何计算每天的所有记录总数?