class Rapporteur::Checks::ActiveRecordCheck
Public Class Methods
call(checker)
click to toggle source
# File lib/rapporteur/checks/active_record_check.rb, line 6 def self.call(checker) ActiveRecord::Base.connection.select_value('SELECT current_time AS time') rescue StandardError checker.add_error(:database, :unavailable) end