Class: HealthyRack::Checks::ActiveRecord

Inherits:
HealthyRack::Check show all
Defined in:
lib/healthy_rack/checks/active_record.rb

Instance Method Summary collapse

Methods inherited from HealthyRack::Check

#==, #hash, #name

Instance Method Details

#callObject



11
12
13
14
15
16
# File 'lib/healthy_rack/checks/active_record.rb', line 11

def call
  ::ActiveRecord::Migrator.current_version
  true
rescue
  false
end

#verifyObject



7
8
9
# File 'lib/healthy_rack/checks/active_record.rb', line 7

def verify
  VerifyClassDefinition.call('ActiveRecord')
end