質問編集履歴

1

コードを一部修正しました

2020/11/15 16:33

投稿

_Iwasaki_
_Iwasaki_

スコア9

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- `Lesson.where(lesson_day: Date.new(2020, 4, 1)..Date.new(2021, 3, 31)).group("extract(month from lesson_day)").order("extract_month_from_lesson_day DESC").count`
15
+ `Lesson.where(lesson_day: Date.new(2020, 4, 1)..Date.new(2021, 3, 31)).group("extract(month from lesson_day)").order("extract_month_from_lesson_day").count`
16
16
 
17
17
 
18
18