class OkComputer::ActiveRecordCheck
Constants
- ConnectionFailed
Public Instance Methods
Source
# 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
Public: Return the schema version of the database
Source
# File lib/ok_computer/built_in_checks/active_record_check.rb, line 14 def schema_version ActiveRecord::Migrator.current_version rescue => e raise ConnectionFailed, e end
Public: The scema version of the app’s database
Returns a String with the version number