diff options
Diffstat (limited to 'app/workers/pages/deactivated_deployments_delete_cron_worker.rb')
-rw-r--r-- | app/workers/pages/deactivated_deployments_delete_cron_worker.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/workers/pages/deactivated_deployments_delete_cron_worker.rb b/app/workers/pages/deactivated_deployments_delete_cron_worker.rb index 7ee6327cea7..75905759761 100644 --- a/app/workers/pages/deactivated_deployments_delete_cron_worker.rb +++ b/app/workers/pages/deactivated_deployments_delete_cron_worker.rb @@ -12,6 +12,7 @@ module Pages def perform PagesDeployment.deactivated.each_batch do |deployments| # rubocop: disable Style/SymbolProc + deployments.each { |deployment| deployment.file.remove! } deployments.delete_all end end |