Sha256: 57f6cfee256f44932954a0b9ec3913154aae6fd879bbbaffc859c403e7f05539

Contents?: true

Size: 216 Bytes

Versions: 100

Compression:

Stored size: 216 Bytes

Contents

module GovukHealthcheck
  class ActiveRecord
    def name
      :database_connectivity
    end

    def status
      ::ActiveRecord::Base.connection
      OK
    rescue StandardError
      CRITICAL
    end
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
govuk_app_config-3.0.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.10.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.9.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.9.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.8.4 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.8.3 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.8.2 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.8.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.8.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.7.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.7.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.6.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.5.2 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.5.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.5.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.4.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.4.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.3.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.2.2 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.2.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb