gab-social/config
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
..
environments Replace Makara with an initial Rails 6 role based splitting method. 2021-02-09 19:38:10 +00:00
initializers Bundle of corrections and one doorkeeper writing role change 2021-02-09 22:32:24 -05:00
locales Updated registration page username to disallow unallowed characters 2021-02-11 00:57:48 -05:00
webpack Removed prop-types global import, added to files directly 2020-08-17 15:59:29 -05:00
application.rb Removed some Rack configs and moved RackAttack rate limits, headers 2021-01-14 13:37:38 -05:00
boot.rb Gab Social. All are welcome. 2019-07-02 03:10:25 -04:00
brakeman.ignore Gab Social. All are welcome. 2019-07-02 03:10:25 -04:00
cable.yml Upgrade to Rails 6 2021-01-23 09:01:31 -06:00
database.yml Mark the replicas as replicas 2021-02-13 23:20:43 -06:00
deploy.rb change all GitHub links to Gab's GitLab at code.gab.com 2019-07-03 13:26:13 -04:00
elastic_apm.yml Update elastic_apm.yml 2021-02-03 15:17:38 +00:00
environment.rb Gab Social. All are welcome. 2019-07-02 03:10:25 -04:00
i18n-tasks.yml Gab Social. All are welcome. 2019-07-02 03:10:25 -04:00
navigation.rb Removed unused chat_messages route from Navigation for admin dashboard 2021-01-25 13:52:52 -05:00
puma.rb Upgrade to Rails 6 2021-01-23 09:01:31 -06:00
routes.rb Replace Makara with an initial Rails 6 role based splitting method. 2021-02-09 19:38:10 +00:00
secrets.yml Gab Social. All are welcome. 2019-07-02 03:10:25 -04:00
settings.yml Removed all occurances of "theme" from backend, settings 2021-01-15 14:35:50 -05:00
sidekiq.yml Progress on DMs 2020-12-19 01:33:33 -05:00
storage.yml Upgrade to Rails 6 2021-01-23 09:01:31 -06:00
webpacker.yml Progress 2020-01-24 16:18:17 -05:00