Class: StatusPage::Services::Database
- Defined in:
- lib/status-page/services/database.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#config, config, config_class, configurable?, #initialize, service_name
Constructor Details
This class inherits a constructor from StatusPage::Services::Base
Instance Method Details
#check! ⇒ Object
6 7 8 9 10 11 |
# File 'lib/status-page/services/database.rb', line 6 def check! # Check connection to the DB: ActiveRecord::Migrator.current_version rescue Exception => e raise DatabaseException.new(e.) end |