Skip to content

Commit

Permalink
Updated readme [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jun 17, 2024
1 parent 5ace4c9 commit 8435ac0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,17 @@ distribute_reads(replica: true) do
end
```

## Rails 6
## Rails

Rails 6 has [native support for replicas](https://guides.rubyonrails.org/active_record_multiple_databases.html) :tada:
Rails 6+ has [native support for replicas](https://guides.rubyonrails.org/active_record_multiple_databases.html) :tada:

```ruby
ActiveRecord::Base.connected_to(role: :reading) do
# do reads
end
```

However, it’s not able to automatically route queries like Makara just yet.
However, it’s not able to do automatic statement-based routing like Makara yet.

## Thanks

Expand Down

0 comments on commit 8435ac0

Please sign in to comment.