change created_at to updated_at for recent statuses to use index
This commit is contained in:
parent
6a8a538d33
commit
06125bf882
@ -94,7 +94,7 @@ class Status < ApplicationRecord
|
||||
|
||||
default_scope { recent }
|
||||
|
||||
scope :recent, -> { reorder(created_at: :desc) }
|
||||
scope :recent, -> { reorder(updated_at: :desc) }
|
||||
scope :remote, -> { where(local: false).or(where.not(uri: nil)) }
|
||||
scope :local, -> { where(local: true).or(where(uri: nil)) }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user