Rails 6 RC2 multi-db issue under multithreaded environment · Issue #36830 · rails/rails
When you use ActiveRecord::Middleware::DatabaseSelector with multithreaded puma, write access to db randomly fails with ActiveRecord::ReadOnlyError: Write query attempted while in readonly mode. Ac...