我有两个型号User和Post,其中一个 :user has_many :posts
:user
has_many :posts
如何查找超过n帖子的用户列表?
n
我正在寻找一个简单的声明,where而不是使用范围.
where
postgresql activerecord ruby-on-rails
activerecord ×1
postgresql ×1
ruby-on-rails ×1