Files
gitlab-ce/config/initializers/active_record_postgresql_adapter.rb
2023-06-21 09:09:11 +00:00

6 lines
233 B
Ruby

# frozen_string_literal: true
if Gitlab::Utils.to_boolean(ENV['ENABLE_ACTIVERECORD_TYPEMAP_CACHE'], default: true)
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(Gitlab::Database::PostgresqlAdapter::TypeMapCache)
end