diff --git a/app/jobs/pjs_migration_job.rb b/app/jobs/pjs_migration_job.rb index 06acaafd696..eeeb1dc674c 100644 --- a/app/jobs/pjs_migration_job.rb +++ b/app/jobs/pjs_migration_job.rb @@ -24,6 +24,7 @@ def perform(blob_id) client.delete_object(container, old_key) end rescue Fog::OpenStack::Storage::NotFound + blob.attachments.destroy_all end def already_moved?(blob)