From 33df2029ab63112d9a57015867d64ee3cb9c5beb Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Thu, 28 Nov 2024 12:20:42 +0100 Subject: [PATCH] chore: re backfill siret champ --- app/tasks/maintenance/populate_siret_value_json_task.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/tasks/maintenance/populate_siret_value_json_task.rb b/app/tasks/maintenance/populate_siret_value_json_task.rb index 78a5d8757..4464cceca 100644 --- a/app/tasks/maintenance/populate_siret_value_json_task.rb +++ b/app/tasks/maintenance/populate_siret_value_json_task.rb @@ -4,8 +4,13 @@ # la normalisation des adresses des champs RNA/RNF/SIRET # le fait de stocker ces données normalisées dans le champs.value_json (un jsonb) # le backfill les anciens champs RNA/RNF/SIRET +# A (re)jouer après déploiement de PR #11013 https://github.com/demarches-simplifiees/demarches-simplifiees.fr/pull/11013 module Maintenance class PopulateSiretValueJSONTask < MaintenanceTasks::Task + include RunnableOnDeployConcern + + run_on_first_deploy + def collection Champs::SiretChamp.where.not(value: nil) end