From 44aff1a293d96c9d279df8264befe27c756fc36f Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Thu, 20 Oct 2022 17:05:28 +0200 Subject: [PATCH] fix(silent_error_in_merge): raise if merge update fail --- app/models/administrateur.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/administrateur.rb b/app/models/administrateur.rb index 4a43bbd42..5d0783862 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!(administrateur_id: id) end end