From 95b437bf3d9f592ad752f1fdc773b3e943664052 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Fri, 31 Aug 2018 14:26:03 +0200 Subject: [PATCH] Don't try to validate check when we increment consecutive failures --- app/models/check.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/check.rb b/app/models/check.rb index bd76fe7..2207cbb 100644 --- a/app/models/check.rb +++ b/app/models/check.rb @@ -87,7 +87,7 @@ class Check < ApplicationRecord def increment_consecutive_failures! self.consecutive_failures += 1 - save! + save!(validate: false) end def supported?