README.md in standby-4.0.0 vs README.md in standby-5.0.0

- old
+ new

@@ -1,8 +1,8 @@ # Standby - Read from standby databases for ActiveRecord (formerly Slavery) -[![Build Status](https://travis-ci.org/kenn/slavery.svg)](https://travis-ci.org/kenn/slavery) +![Build Status](https://github.com/kenn/standby/actions/workflows/ci.yml/badge.svg) Standby is a simple, easy to use gem for ActiveRecord that enables conservative reading from standby databases, which means it won't automatically redirect all SELECTs to standbys. Instead, you can do `Standby.on_standby { User.count }` to send a particular query to a standby. @@ -153,16 +153,13 @@ ```ruby gem 'standby' ``` -Replace `Slavery` with `Standby`, `on_slave` with `on_standby`, and `on_master` with `on_primary`. +Then -```sh -grep -e Slavery **/*.rake **/*.rb -s -l | xargs sed -i "" "s|Slavery|Standby|g" -grep -e on_slave **/*.rake **/*.rb -s -l | xargs sed -i "" "s|on_slave|on_standby|g" -grep -e on_master **/*.rake **/*.rb -s -l | xargs sed -i "" "s|on_master|on_primary|g" -``` +* Replace `Slavery` with `Standby`, `on_slave` with `on_standby`, and `on_master` with `on_primary` +* Update keys in `database.yml` (e.g. `development_slave` to `development_standby`) ## Upgrading from version 2 to version 3 Please note that `Standby.spec_key=` method has been removed from version 3.