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

Dump schema only for a specific db for rollback/up/down tasks for multiple dbs #49793

Merged

Conversation

fatkodima
Copy link
Member

Currently, rails db:migrate:primary (and rails db:up:primary, rails db:down:primary) dumps schema files for all the databases, even though this is not necessary.

Fixes #49351 (see there for the problem description).

@eileencodes eileencodes merged commit 56b7357 into rails:main Oct 26, 2023
4 checks passed
eileencodes added a commit that referenced this pull request Oct 26, 2023
…-specific

Dump schema only for a specific db for rollback/up/down tasks for multiple dbs
@eileencodes
Copy link
Member

eileencodes commented Oct 26, 2023

Thank you!

Backported to 7-1-stable in 40ecfd3

@fatkodima fatkodima deleted the multiple-databases-rake-dump-specific branch October 26, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

db:rollback:{database} dumps all databases schemas
2 participants