Commit 34711f2ad076863773c3651dafb3b28930ab8c30

Authored by Nathan Broadbent
1 parent 75d9282c
Exists in master and in 1 other branch production

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 23 validates_presence_of :backtrace, :server_environment, :notifier
24 24  
25 25 scope :ordered, order_by(:created_at.asc)
  26 + index :created_at
26 27  
27 28 def self.from_xml(hoptoad_xml)
28 29 hoptoad_notice = Hoptoad::V2.parse_xml(hoptoad_xml)
... ...