Method: OkComputer::ActiveRecordCheck#schema_version

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

#schema_versionObject

Public: The scema version of the app’s database

Returns a String with the version number



14
15
16
17
18
# 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