demarches-normaliennes/app/jobs/migrations/backfill_virus_scan_blobs_job.rb
2024-08-22 09:26:48 +02:00

8 lines
236 B
Ruby

# frozen_string_literal: true
class Migrations::BackfillVirusScanBlobsJob < ApplicationJob
def perform(batch)
ActiveStorage::Blob.where(id: batch)
.update_all(virus_scan_result: ActiveStorage::VirusScanner::SAFE)
end
end