change created_at to updated_at for recent statuses to use index

This commit is contained in:
admin 2020-11-14 13:14:33 +00:00
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)) }