active_record_replica icon indicating copy to clipboard operation
active_record_replica copied to clipboard

Rails 6

Open reidmorrison opened this issue 4 years ago • 9 comments

Description of changes

Support Rails 6

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

reidmorrison avatar Jan 08 '21 15:01 reidmorrison

@reidmorrison this is awesome. Could you rebase so that I can better understand the diff after merging your other PR to bring us to version 3?

goodgravy avatar Mar 18 '21 17:03 goodgravy

@reidmorrison Hi! Any plans for merging this PR?

v-kolesnikov avatar Sep 10 '21 09:09 v-kolesnikov

Yes, that would be great, we have been running my fork for several months in production now. We first started on Rails 6.0 and are now running Rails 6.1. The changes above started with running RuboCop to fix syntax and include a major refactor to support Rails 6.x.

reidmorrison avatar Oct 07 '21 18:10 reidmorrison

The changes above started with running RuboCop to fix syntax and include a major refactor to support Rails 6.x.

would you also include .rubocop.yml file with? I’m wondering what are cops were used.

sasharevzin avatar Oct 23 '21 23:10 sasharevzin

Lol, good point, I have a .rubocop.yml file in the root path for all my open source projects. I need to add it to not only to this PR but all my own open source projects. :+1:

reidmorrison avatar Dec 31 '21 18:12 reidmorrison

@goodgravy I see you gave me merge privileges to this repo, do you want me to do a squash merge of the above commits?

This gem can be significantly simplified if we create a new major version that only supports Rails 6 and above, since it can use the Rails built-in multi-database support. I can work on that approach if there is interest? It will also make supporting multiple replicas fairly straight forward to meet @mainameiz's requirements.

reidmorrison avatar Dec 31 '21 18:12 reidmorrison

@reidmorrison I would love to use it with multiple replicas 😀

sasharevzin avatar Jan 14 '22 15:01 sasharevzin