Add task to scan old champs pj

This commit is contained in:
Mathieu Magnin 2018-06-04 17:23:11 +02:00
parent 6289a719ef
commit aad109e376

View file

@ -0,0 +1,7 @@
namespace :'2018_06_04_scan_pjs' do
task scan_all: :environment do
Champs::PieceJustificativeChamp.all.each do |pj_champ|
pj_champ.create_virus_scan
end
end
end