Skip to content

Bugfix: Restore original connection after iterating through connections - #184

Merged
ka8725 merged 3 commits into
widefix:mainfrom
tony-pizza:ian/restore-original-connection
Mar 28, 2026
Merged

ka8725 merged 3 commits into
widefix:mainfrom
tony-pizza:ian/restore-original-connection

Conversation

@tony-pizza

Copy link
Copy Markdown
Contributor

We use multiple databases. I experienced an error after installing this gem where our application was attempting to fetch data from a table in the incorrect database. I believe it is due to the original connection not getting restored in the each method in MigrationContext. I've tested this in my application with a monkeypatch.

@ka8725

ka8725 commented Mar 28, 2026

Copy link
Copy Markdown
Member

@tony-pizza thanks for your contribution!

@ka8725
ka8725 merged commit 7e1ae4e into widefix:main Mar 28, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants