Method: OkComputer::ActiveRecordCheck#check

Defined in:
lib/ok_computer/built_in_checks/active_record_check.rb

#checkObject

Public: Return the schema version of the database



4
5
6
7
8
9
# File 'lib/ok_computer/built_in_checks/active_record_check.rb', line 4

def check
  mark_message "Schema version: #{schema_version}"
rescue ConnectionFailed => e
  mark_failure
  mark_message "Error: '#{e}'"
end