2021-02-03 21:09:17 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-03-30 12:10:51 +00:00
|
|
|
if Gitlab::Utils.to_boolean(ENV['ENABLE_ACTIVERECORD_EMPTY_PING'], default: true)
|
2020-12-15 06:09:59 +00:00
|
|
|
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(Gitlab::Database::PostgresqlAdapter::EmptyQueryPing)
|
|
|
|
end
|
2021-06-07 18:10:23 +00:00
|
|
|
|
2021-06-15 21:10:04 +00:00
|
|
|
if Gitlab::Utils.to_boolean(ENV['ENABLE_ACTIVERECORD_TYPEMAP_CACHE'], default: true)
|
2021-06-07 18:10:23 +00:00
|
|
|
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(Gitlab::Database::PostgresqlAdapter::TypeMapCache)
|
|
|
|
end
|