Skip to content

config/initializers/multi_db doesn't work #45162

@nate-at-gusto

Description

@nate-at-gusto

It doesn't insert the database selector middleware, because the railtie which inserts it has already run by the time the initializer is run.

Repro

See repo here.

bin/rails test test/integration/replica_test.rb 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions