Sha256: 68999d99aab05bf0f1995cb837238eae7e119d0583021890356d2290e2e9c011

Contents?: true

Size: 221 Bytes

Versions: 23

Compression:

Stored size: 221 Bytes

Contents

module GovukHealthcheck
  class ActiveRecord
    def name
      :database_connectivity
    end

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
govuk_app_config-2.2.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.1.2 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.1.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.1.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.0.3 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.0.2 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.0.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-2.0.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-1.20.2 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-1.20.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-1.20.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-1.19.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-1.18.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-1.17.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-1.16.3 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-1.16.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-1.16.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-1.15.1 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-1.15.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb
govuk_app_config-1.14.0 lib/govuk_app_config/govuk_healthcheck/active_record.rb