summaryrefslogtreecommitdiff
path: root/config/initializers/active_record_ping.rb
blob: 196f587f565473bbeeb700ac8e60cca02d51ed11 (plain)
1
2
3
4
5
6
7
# frozen_string_literal: true

# # frozen_string_literal: true

if Gitlab::Utils.to_boolean(ENV['ENABLE_ACTIVERECORD_EMPTY_PING'], default: false)
  ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(Gitlab::Database::PostgresqlAdapter::EmptyQueryPing)
end