diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-12 00:08:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-12 00:08:09 +0300 |
commit | fdc26e021b1e3eea4161bf6891f3a151fb7414b0 (patch) | |
tree | f06ce58930f41f8d031e827df198fed5dfab09be /config/application.rb | |
parent | 11df4bf91b8cf9ac7bb601241992e300eebf684c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb index 3670d787fbd..0f6178121ee 100644 --- a/config/application.rb +++ b/config/application.rb @@ -536,8 +536,10 @@ module Gitlab # because we connect to database from routes # https://github.com/rails/rails/blob/fdf840f69a2e33d78a9d40b91d9b7fddb76711e9/activerecord/lib/active_record/railtie.rb#L308 initializer :clear_active_connections_again, after: :set_routes_reloader_hook do + # rubocop:disable Database/MultipleDatabases ActiveRecord::Base.clear_active_connections! ActiveRecord::Base.flush_idle_connections! + # rubocop:enable Database/MultipleDatabases end # DO NOT PLACE ANY INITIALIZERS AFTER THIS. |