回答編集履歴

1

修正

2019/07/16 17:47

投稿

mochizuki-pg
mochizuki-pg

スコア192

test CHANGED
@@ -12,8 +12,8 @@
12
12
 
13
13
 
14
14
 
15
- users_has_diary = User.where(UserGroup.where(condition).exists).all
15
+ users_has_diary = User.where(Diary.where(condition).exists).all
16
16
 
17
- users_no_diary = User.where(UserGroup.where(condition).exists.not).all
17
+ users_no_diary = User.where(Diary.where(condition).exists.not).all
18
18
 
19
19
  ```