aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2019-06-04 11:38:56 -0400
committerGitHub <noreply@github.com>2019-06-04 11:38:56 -0400
commit30b03ad73bad126538f4c6199522ccd007f101d5 (patch)
tree87045e444c89577a9552327094b5041ee29fe74f /guides
parentf614be3768c41fe080457d90c696d1df047d3357 (diff)
parentc7a609b10caf0185cb9f8d80908e111992b48f7d (diff)
downloadrails-30b03ad73bad126538f4c6199522ccd007f101d5.tar.gz
rails-30b03ad73bad126538f4c6199522ccd007f101d5.tar.bz2
rails-30b03ad73bad126538f4c6199522ccd007f101d5.zip
Merge pull request #36405 from abhaynikam/36389-follow-up-to-fix-grammer-and-typo
Fix sentence and a typo
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_multiple_databases.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_multiple_databases.md b/guides/source/active_record_multiple_databases.md
index 3e445b57a1..e2c7878118 100644
--- a/guides/source/active_record_multiple_databases.md
+++ b/guides/source/active_record_multiple_databases.md
@@ -81,7 +81,7 @@ When using multiple databases there are a few important settings.
First, the database name for the primary and replica should be the same because they contain
the same data. Second, the username for the primary and replica should be different, and the
-replica user's permissions should be to to read and not write.
+replica user's permissions should be to read and not write.
When using a replica database you need to add a `replica: true` entry to the replica in the
`database.yml`. This is because Rails otherwise has no way of knowing which one is a replica
@@ -260,7 +260,7 @@ if you need sharding it may be advisable to continue using one of the many gems
that supports this.
Rails also doesn't support automatic load balancing of replicas. This is very
-depentent on your infrastructure. We may implement basic, primitive load balancing
+dependent on your infrastructure. We may implement basic, primitive load balancing
in the future, but for an application at scale this should be something your application
handles outside of Rails.