Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このちょっとした T-SQL を ActiveRecord クエリに変換するのに助けが必要です
select entry from faxlog group by entry having count(entry) >= 8
これを試して:
Faxlog.group(:entry).select("entry").having("count(entry) >= ?", 8)