From 45ef7493c3221b2bcb4db69c611eab3dc24bbd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Thu, 14 Dec 2023 11:15:48 +0100 Subject: [PATCH] Silence multiple database warning https://community.openproject.org/work_packages/51625 --- config/environments/production.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 3dfa24de6a6..5d3de7353c5 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -127,6 +127,11 @@ OpenProject::Application.configure do config.active_record.dump_schema_after_migration = false + # Silence the following warning + # "Rails couldn't infer whether you are using multiple databases from your database.yml" + # This is deprecated in 7.1. and the warning got removed. + config.active_record.suppress_multiple_database_warning = true + if OpenProject::Configuration.enable_internal_assets_server? config.public_file_server.enabled = true config.public_file_server.headers = {