2021-02-03 16:09:17 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-12-15 01:09:59 -05:00
|
|
|
# # frozen_string_literal: true
|
|
|
|
|
2021-03-30 08:10:51 -04:00
|
|
|
if Gitlab::Utils.to_boolean(ENV['ENABLE_ACTIVERECORD_EMPTY_PING'], default: true)
|
2020-12-15 01:09:59 -05:00
|
|
|
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(Gitlab::Database::PostgresqlAdapter::EmptyQueryPing)
|
|
|
|
end
|