Sha256: f13ad48e188533b78ae8ed17d9fabf31faf1ece97bb3d6e40ecc8d3fb0d82ba8

Contents?: true

Size: 309 Bytes

Versions: 21

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

module NeetoCommonsBackend
  class PurgeUnattachedFilesWorker < NeetoCommonsBackend::BaseWorkers::Low
    def perform
      # ActiveStorage::Blob.unattached.where(
      #   "active_storage_blobs.created_at <= ?", 1.week.ago
      # ).find_each(&:purge_later)
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
neeto-commons-backend-1.0.109 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.108 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.107 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.106 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.105 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.104 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.103 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.102 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.101 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.100 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.99 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.98 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.97 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.96 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.95 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.94 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.93 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.92 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.91 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb
neeto-commons-backend-1.0.90 app/workers/neeto_commons_backend/purge_unattached_files_worker.rb