tech(maintenance): ajoute une maintenance_task
pour ajouter des champs manquant a un dossier
This commit is contained in:
parent
f6c051e08e
commit
b83975869c
1 changed files with 11 additions and 0 deletions
11
app/tasks/maintenance/add_dossiers_missing_champs_task.rb
Normal file
11
app/tasks/maintenance/add_dossiers_missing_champs_task.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Maintenance
|
||||
class AddDossiersMissingChampsTask < MaintenanceTasks::Task
|
||||
csv_collection
|
||||
|
||||
def process(row)
|
||||
DataFixer::DossierChampsMissing(dossier: row["dossier_id"]).fix
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue