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

fix ordered migrations for single db in multi db environment #43988

Merged
merged 2 commits into from Jan 5, 2022

Conversation

himanshugoyal-git
Copy link

Summary

The migrations were not correctly ordered when we have intermediate migrations pending in multi-db environment and we did a

rails db:migrate

This resulted in the last active migration being reverted.

Here is the issue: #43833

This change helps possibly fixing it.

@eileencodes eileencodes merged commit 6a8c51b into rails:main Jan 5, 2022
eileencodes added a commit that referenced this pull request Jan 5, 2022
fix ordered migrations for single db in multi db environment
@eileencodes
Copy link
Member

Thanks for the PR @himanshu-goyal-vineti!

Backported to 7-0-stable in a0c0938. Fixes #44077 in addition to #43833

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.

None yet

3 participants