diff options
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb index f69dab4de39..68dc449b793 100644 --- a/config/application.rb +++ b/config/application.rb @@ -10,6 +10,7 @@ module Gitlab require_dependency Rails.root.join('lib/gitlab/redis/queues') require_dependency Rails.root.join('lib/gitlab/redis/shared_state') require_dependency Rails.root.join('lib/gitlab/request_context') + require_dependency Rails.root.join('lib/gitlab/database') # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers @@ -156,6 +157,10 @@ module Gitlab config.active_record.raise_in_transactional_callbacks = true + # The schema cache is database specific. There is no way to support both + # PostgreSQL and MySQL, hence we only enable this when PostgreSQL is used. + config.active_record.use_schema_cache_dump = Gitlab::Database.postgresql? + config.active_job.queue_adapter = :sidekiq # This is needed for gitlab-shell |