diff --git a/app/jobs/tmp_dossiers_migrate_revisions_job.rb b/app/jobs/tmp_dossiers_migrate_revisions_job.rb index ad9e55dee..3d5bae95f 100644 --- a/app/jobs/tmp_dossiers_migrate_revisions_job.rb +++ b/app/jobs/tmp_dossiers_migrate_revisions_job.rb @@ -8,8 +8,7 @@ class TmpDossiersMigrateRevisionsJob < ApplicationJob .limit(2000) .find_each do |dossier| if dossier.procedure.present? - dossier.revision = dossier.procedure.active_revision - dossier.save!(validate: false) + dossier.update_column(:revision_id, dossier.procedure.active_revision_id) else except << dossier.id end