diff --git a/lib/easymon/checks/active_record_check.rb b/lib/easymon/checks/active_record_check.rb index 723a16d..89c803f 100644 --- a/lib/easymon/checks/active_record_check.rb +++ b/lib/easymon/checks/active_record_check.rb @@ -18,6 +18,7 @@ def check private def database_up? + klass.connection.connect! klass.connection.active? rescue false