Skip to content

Commit

Permalink
Update adapter name for mysql to be mysql2 in active record multi db doc
Browse files Browse the repository at this point in the history
  • Loading branch information
hahmed committed Mar 1, 2021
1 parent 35e9812 commit 3740540
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions guides/source/active_record_multiple_databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The `database.yml` looks like this:
production:
database: my_primary_database
user: root
adapter: mysql
adapter: mysql2
```
Let's add a replica for the first configuration, and a second database called animals and a
Expand All @@ -68,21 +68,21 @@ production:
primary:
database: my_primary_database
user: root
adapter: mysql
adapter: mysql2
primary_replica:
database: my_primary_database
user: root_readonly
adapter: mysql
adapter: mysql2
replica: true
animals:
database: my_animals_database
user: animals_root
adapter: mysql
adapter: mysql2
migrations_paths: db/animals_migrate
animals_replica:
database: my_animals_database
user: animals_readonly
adapter: mysql
adapter: mysql2
replica: true
```

Expand Down Expand Up @@ -338,17 +338,17 @@ Shards are declared in the three-tier config like this:
production:
primary:
database: my_primary_database
adapter: mysql
adapter: mysql2
primary_replica:
database: my_primary_database
adapter: mysql
adapter: mysql2
replica: true
primary_shard_one:
database: my_primary_shard_one
adapter: mysql
adapter: mysql2
primary_shard_one_replica:
database: my_primary_shard_one
adapter: mysql
adapter: mysql2
replica: true
```
Expand Down

0 comments on commit 3740540

Please sign in to comment.