aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authortr4b4nt <tr4bant@gmail.com>2019-07-02 16:47:00 +0200
committerGitHub <noreply@github.com>2019-07-02 16:47:00 +0200
commitd71d3f4326d07ef6ccb074b60ee7adaadadcb637 (patch)
tree3e738e13a6119ddc45f21e690006bbc467ae243e /guides
parent41503f3d08418fb2dfe0eb85ac797059d9590051 (diff)
downloadrails-d71d3f4326d07ef6ccb074b60ee7adaadadcb637.tar.gz
rails-d71d3f4326d07ef6ccb074b60ee7adaadadcb637.tar.bz2
rails-d71d3f4326d07ef6ccb074b60ee7adaadadcb637.zip
Replace replica with primary in automatic connection switching after write in multi-db docs [ci skip]
Reads after write should be from the primary database.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_multiple_databases.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_multiple_databases.md b/guides/source/active_record_multiple_databases.md
index d7d9bd1ca9..07be21a254 100644
--- a/guides/source/active_record_multiple_databases.md
+++ b/guides/source/active_record_multiple_databases.md
@@ -180,7 +180,7 @@ to primary based on the HTTP verb and whether there was a recent write.
If the application is receiving a POST, PUT, DELETE, or PATCH request the application will
automatically write to the primary. For the specified time after the write the application
-will read from the replica. For a GET or HEAD request the application will read from the
+will read from the primary. For a GET or HEAD request the application will read from the
replica unless there was a recent write.
To activate the automatic connection switching middleware, add or uncomment the following