Class: Workers::CleanupPendingPhotos

Inherits:
Base
  • Object
show all
Defined in:
app/workers/cleanup_pending_photos.rb

Instance Method Summary collapse

Instance Method Details

#performObject


7
8
9
# File 'app/workers/cleanup_pending_photos.rb', line 7

def perform
  Photo.where(pending: true).where("created_at < ?", 1.day.ago).destroy_all
end