How to find the lowest value from maximum values

前端 未结 0 2027
时光取名叫无心
时光取名叫无心 2021-02-07 01:27
Product.all.map { |p| p.reviews.maximum(:created_at) }.min

I would like to find the lowest values from maximum values. It\'s doable in one query without

相关标签:
回答
  • 消灭零回复
提交回复
热议问题