回答編集履歴
1
not type
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
# 先月
|
12
12
|
|
13
|
-
scope :last_month, -> { where(t
|
13
|
+
scope :last_month, -> { where(created_at: Time.now.prev_month.beginning_of_month..Time.now.prev_month.end_of_month) }
|
14
14
|
|
15
15
|
...
|
16
16
|
|