From 0d48005b8a6f5db8ca9ec9e2722e0e5047968216 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 6 Nov 2025 09:36:23 -0500 Subject: [PATCH] Remove legacy AR connection boot from puma config (#36757) --- config/puma.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/config/puma.rb b/config/puma.rb index d34c14b425..8f0d3bd814 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -44,12 +44,6 @@ if ENV['MASTODON_PROMETHEUS_EXPORTER_ENABLED'] == 'true' end end -before_worker_boot do - ActiveSupport.on_load(:active_record) do - ActiveRecord::Base.establish_connection - end -end - plugin :tmp_restart set_remote_address(proxy_protocol: :v1) if ENV['PROXY_PROTO_V1'] == 'true'