Specs for cleanup workers (#3235)
* Add spec files for feed and media cleanup workers * Add coverage for feed and media cleanup schedulers * Clean up feed and media cleanup workers
This commit is contained in:
parent
4a4733b397
commit
ec34ec63b1
6 changed files with 39 additions and 2 deletions
|
@ -55,6 +55,7 @@ class MediaAttachment < ApplicationRecord
|
|||
validates :account, presence: true
|
||||
|
||||
scope :attached, -> { where.not(status_id: nil) }
|
||||
scope :unattached, -> { where(status_id: nil) }
|
||||
scope :local, -> { where(remote_url: '') }
|
||||
default_scope { order(id: :asc) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue