diff --git a/app/models/administrateur.rb b/app/models/administrateur.rb index 5d0783862..dc803c5b9 100644 --- a/app/models/administrateur.rb +++ b/app/models/administrateur.rb @@ -131,7 +131,7 @@ class Administrateur < ApplicationRecord old_service.procedures.update_all(service_id: corresponding_service.id) old_service.destroy else - old_service.update!(administrateur_id: id) + old_service.update_column(:administrateur_id, id) end end