?", 2) ` ...">

毎回調べるActiveRecordのクエリインタフェース

SkillCategory.all.left_joins(:option_curriculums).group(:id).having("count('*') > ?", 2)