Commit 34711f2ad076863773c3651dafb3b28930ab8c30
1 parent
75d9282c
Exists in
master
and in
1 other branch
Added index for :created_at to Notice
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/models/notice.rb
| @@ -23,6 +23,7 @@ class Notice | @@ -23,6 +23,7 @@ class Notice | ||
| 23 | validates_presence_of :backtrace, :server_environment, :notifier | 23 | validates_presence_of :backtrace, :server_environment, :notifier |
| 24 | 24 | ||
| 25 | scope :ordered, order_by(:created_at.asc) | 25 | scope :ordered, order_by(:created_at.asc) |
| 26 | + index :created_at | ||
| 26 | 27 | ||
| 27 | def self.from_xml(hoptoad_xml) | 28 | def self.from_xml(hoptoad_xml) |
| 28 | hoptoad_notice = Hoptoad::V2.parse_xml(hoptoad_xml) | 29 | hoptoad_notice = Hoptoad::V2.parse_xml(hoptoad_xml) |