Class: HealthMonitor::Providers::Database
- Defined in:
- lib/health_monitor/providers/database.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
configurable?, configuration_class, configure, #initialize, provider_name
Constructor Details
This class inherits a constructor from HealthMonitor::Providers::Base
Instance Method Details
#check! ⇒ Object
10 11 12 13 14 15 |
# File 'lib/health_monitor/providers/database.rb', line 10 def check! # Check connection to the DB: ActiveRecord::Migrator.current_version rescue Exception => e raise DatabaseException.new(e.) end |