Skip to content

Commit

Permalink
Fix formatting issue with multuple db docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hahmed committed Nov 3, 2020
1 parent 22584d0 commit 96b1c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/source/active_record_multiple_databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ It's also possible to swap connections granularly for shards.

```ruby
AnimalsRecord.connected_to(role: :reading, shard: :shard_one) do
Dog.first # Will read from shard_one_replica. If no connection exists for
shard_one_replica, a ConnectionNotEstablished error will be raised
Dog.first # Will read from shard_one_replica. If no connection exists for shard_one_replica,
# a ConnectionNotEstablished error will be raised
Person.first # Will read from primary writer
end
```
Expand Down

0 comments on commit 96b1c65

Please sign in to comment.