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