Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Db schema cache dump and clear multi db #34181

Merged

Conversation

Projects
None yet
2 participants
@gmcgibbon
Copy link
Member

commented Oct 10, 2018

Summary

Adds multi-db support to rails db:schema:cache:dump and rails db:schema:cache:clear. I assume we may need to do some followup on this for rails to actually use the other schema cache files, right?

r? @eileencodes
cc @rafaelfranca

@gmcgibbon gmcgibbon force-pushed the gmcgibbon:db_schema_cache_dump_and_clear_multi_db branch 3 times, most recently from 33c3fa1 to 4c2c2cf Oct 10, 2018

@gmcgibbon

This comment has been minimized.

Copy link
Member Author

commented Oct 24, 2018

I believe we need to change this railtie initializer in ActiveRecord for other schema caches to be picked up on. That might be tricky if caches live in the connection object.

@eileencodes
Copy link
Member

left a comment

Minor update to the changelog needed. Otherwise looks good 👍

* Adds support for multiple databases to `rails db:schema:cache:dump`.

*Gannon McGibbon*

This comment has been minimized.

Copy link
@eileencodes

eileencodes Nov 7, 2018

Member

You can write one changelog entry like "Adds support for multiple databases to rails db:schema:cache:dump and rails db:schema:cache:clear.

Also this should be in the AR changelog, not ralties

This comment has been minimized.

Copy link
@gmcgibbon

gmcgibbon Nov 7, 2018

Author Member

Fixed. Thanks 👍

Add multi-db support to schema cache dump and clear
Adds support for multiple databases to `rails db:schema:cache:dump`
and `rails db:schema:cache:clear`.

@gmcgibbon gmcgibbon force-pushed the gmcgibbon:db_schema_cache_dump_and_clear_multi_db branch from 4c2c2cf to ac18bda Nov 7, 2018

@eileencodes eileencodes merged commit fc2684c into rails:master Nov 7, 2018

2 checks passed

codeclimate All good!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@gmcgibbon gmcgibbon deleted the gmcgibbon:db_schema_cache_dump_and_clear_multi_db branch Nov 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.