rubic0n f472a6154e Mark the replicas as replicas
Rails won't even attempt to write to a replica. Without this option,
a write attempt would actually run against Postgres, and it would
be up to Postgres to throw a readonly error.

Additionally, marking it as a replica teaches ActiveRecord that it
should not attempt to run migrations against this connection.

https://api.rubyonrails.org/classes/ActiveRecord/DatabaseConfigurations.html#method-i-configs_for

I'm actually pretty sure that the lack of `replica: true`
is why there's currently a db/slave1_schema.rb and db/slave2_schema.rb
2021-02-13 23:20:43 -06:00
..
2019-07-02 03:10:25 -04:00
2019-07-02 03:10:25 -04:00
2021-01-23 09:01:31 -06:00
2021-02-13 23:20:43 -06:00
2021-02-03 15:17:38 +00:00
2019-07-02 03:10:25 -04:00
2019-07-02 03:10:25 -04:00
2021-01-23 09:01:31 -06:00
2019-07-02 03:10:25 -04:00
2020-12-19 01:33:33 -05:00
2021-01-23 09:01:31 -06:00
2020-01-24 16:18:17 -05:00