回答編集履歴

1

修正

2019/01/16 02:16

投稿

退会済みユーザー
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```ruby
4
4
 
5
- User.find(7).comments.includes(:reactions).group(:id).sum('reactions.count')
5
+ User.find(7).comments.includes(:reactions).group(:id).count('reactions.id')
6
6
 
7
7
  ```
8
8