Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

remove legacy option removed in rails 7.1

ulferts06623a2768f1
diff --git a/config/application.rb b/config/application.rb
index 5e7ca283518..4dd4e0e0393 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -71,14 +71,6 @@ module OpenProject
# set to true.
config.active_record.belongs_to_required_by_default = false
- # Use new connection handling API. For most applications this won't have any
- # effect. For applications using multiple databases, this new API provides
- # support for granular connection swapping.
- # It has to be done here to prevent having the deprecation warning
- # displayed. This line and its comment can safely be removed
- # once `config.load_defaults 6.1` is used.
- config.active_record.legacy_connection_handling = false
-
# Sets up logging for STDOUT and configures the default logger formatter
# so that all environments receive level and timestamp information
#
diff --git a/config/initializers/new_framework_defaults_6_1.rb b/config/initializers/new_framework_defaults_6_1.rb
index 728e9dcf26b..d2690c55a98 100644
--- a/config/initializers/new_framework_defaults_6_1.rb
+++ b/config/initializers/new_framework_defaults_6_1.rb
@@ -53,13 +53,6 @@
# Previous versions used 307. Rails 6.1+ default is 308.
# Rails.application.config.action_dispatch.ssl_default_redirect_status = 308
-# https://guides.rubyonrails.org/configuring.html#config-active-record-legacy-connection-handling
-# Use new connection handling API. For most applications this won't have any
-# effect. For applications using multiple databases, this new API provides
-# support for granular connection swapping.
-# Previous versions had true. Rails 6.1+ default is false.
-Rails.application.config.active_record.legacy_connection_handling = false
-
# https://guides.rubyonrails.org/configuring.html#config-action-view-form-with-generates-remote-forms
# Make `form_with` generate non-remote forms by default.
# Rails 5.1 to 6.0 default was true. Rails 6.1+ default is false.