Sync error message with `connected_to(role: :nonexistent)` [ci skip]

This commit is contained in:
Ryuta Kamizono 2020-11-13 20:27:04 +09:00
parent 5266b6a1c7
commit c9e9346730
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ that were connected via `connects_to` with the role name of `reading`.
Note that `connected_to` with a role will look up an existing connection and switch
using the connection specification name. This means that if you pass an unknown role
like `connected_to(role: :nonexistent)` you will get an error that says
`ActiveRecord::ConnectionNotEstablished (No connection pool for 'ActiveRecord::Base' found for the 'non_existent' role.)`
`ActiveRecord::ConnectionNotEstablished (No connection pool for 'ActiveRecord::Base' found for the 'nonexistent' role.)`
## Horizontal sharding