From ecfacf8417b6f41e5efd218241f73dd675edb34e Mon Sep 17 00:00:00 2001 From: Frederic Merizen Date: Wed, 10 Oct 2018 17:13:14 +0200 Subject: [PATCH] [#2772] Avoid touching champ update date --- lib/tasks/dossier_procedure_migrator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/dossier_procedure_migrator.rb b/lib/tasks/dossier_procedure_migrator.rb index ed9391762..fbc004319 100644 --- a/lib/tasks/dossier_procedure_migrator.rb +++ b/lib/tasks/dossier_procedure_migrator.rb @@ -36,7 +36,7 @@ module Tasks original_champs.each do |c| tdc_to = destination_type_de_champ(c) if tdc_to.present? - c.update(type_de_champ: tdc_to) + c.update_columns(type_de_champ_id: tdc_to.id) elsif discard_champ?(c) champs(dossier).destroy(c) else