diff options
author | Eileen Uchitelle <eileencodes@gmail.com> | 2018-08-30 16:49:13 -0400 |
---|---|---|
committer | Eileen Uchitelle <eileencodes@gmail.com> | 2018-08-31 10:52:32 -0400 |
commit | 2fd997c111b3d2921d011d8023314dbfc2dec317 (patch) | |
tree | eeb676810b4819c5f49e3d9f0b0d29c4f90daf6a /Rakefile | |
parent | 8f2caec401c8e97d9eb1ea84d8263911c50e1ed6 (diff) | |
download | rails-2fd997c111b3d2921d011d8023314dbfc2dec317.tar.gz rails-2fd997c111b3d2921d011d8023314dbfc2dec317.tar.bz2 rails-2fd997c111b3d2921d011d8023314dbfc2dec317.zip |
Add config option for `replica`.
This allows the user to add `replica: true` to the database config to
signify the connection should be treated as readonly. This will be
useful so we can ignore structure dumps or migrations (or creating /
deleting etc) the readonly connection for the databases. These are
paired with a write database which is where the create/drop/migrate
should be run. This allows us to ask the connection if it's for a
replica readonly db or a primary write db.
Diffstat (limited to 'Rakefile')
0 files changed, 0 insertions, 0 deletions