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-4.6.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.6.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.5.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.4.3 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.4.2 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.4.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.4.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.3.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.2.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.1.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.0.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.0.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-3.3.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-3.2.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.0.0.pre.4 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.0.0.pre.3 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.0.0.pre.2 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-4.0.0.pre.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-3.1.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-3.1.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb