DEV: Bump `rails_failover`.

DEV: Bump rails_failover.

diff --git a/Gemfile.lock b/Gemfile.lock
index 2451d91..6144799 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,6 +1,6 @@
 GIT
   remote: https://github.com/discourse/rails_failover
-  revision: ba904987444b96a3fb627ed0b145059ff9f1cf6c
+  revision: ab8fd97f4507a09a2084beb13cf96e77f3fcfb6e
   specs:
     rails_failover (0.4.0)
       activerecord (~> 6.0)
diff --git a/lib/discourse.rb b/lib/discourse.rb
index 094ca70..66c459d 100644
--- a/lib/discourse.rb
+++ b/lib/discourse.rb
@@ -661,6 +661,10 @@ module Discourse
     # re-establish
     Sidekiq.redis = sidekiq_redis_config
 
+    if ENV['ACTIVE_RECORD_RAILS_FAILOVER']
+      RailsFailover::ActiveRecord.after_fork
+    end
+
     # in case v8 was initialized we want to make sure it is nil
     PrettyText.reset_context
 

GitHub sha: 3b311f6b

1 Like