【发布时间】:2021-10-19 21:17:48
【问题描述】:
您好,我正在使用下面的代码
Companion.where(companion_type: 1).joins(:tasks).where(tasks: {status: 3}).group_by_month(:created_at).size
我的数据看起来像这样
Jan, 2017 => 89
.
.
.
Aug, 2021 => 300
但我需要 2019 年 1 月以上的数据 有什么好办法解决吗?
【问题讨论】:
标签: ruby-on-rails hash key