Skip to content

Commit 7cb9aa6

Browse files
authored
Merge pull request thiagopradi#513 from craigmcnamara/patch-1
Drop antiquated slave terminology in favor of read_replica in examples.
2 parents 26ff9eb + 2aa9468 commit 7cb9aa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.mkdn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ First, you need to create a config file, shards.yml, inside your config/ directo
6767
Octopus adds a method to each AR Class and object: the using method is used to select the shard like this:
6868

6969
```ruby
70-
User.where(:name => "Boba").limit(3).using(:slave_one)
70+
User.where(:name => "Boba").limit(3).using(:read_replica_one)
7171
```
7272

7373
Octopus also supports queries within a block. When you pass a block to the using method, all queries inside the block will be sent to the specified shard.
7474

7575
```ruby
76-
Octopus.using(:slave_two) do
76+
Octopus.using(:read_replica_two) do
7777
User.create(:name => "Thiago")
7878
end
7979
```

0 commit comments

Comments
 (0)