回答編集履歴
1
修正
test
CHANGED
@@ -12,8 +12,8 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
users_has_diary = User.where(
|
15
|
+
users_has_diary = User.where(Diary.where(condition).exists).all
|
16
16
|
|
17
|
-
users_no_diary = User.where(
|
17
|
+
users_no_diary = User.where(Diary.where(condition).exists.not).all
|
18
18
|
|
19
19
|
```
|