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-9.15.2 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.15.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.15.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.14.6 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.14.5 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.14.4 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.14.3 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.14.2 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.14.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.14.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.13.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.13.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.12.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.11.2 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.11.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.11.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.10.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.9.2 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.9.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-9.9.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb