Skip to content

Fix multi-database annotation removal fixture targeting - #386

Merged
OdenTakashi merged 1 commit into
drwl:mainfrom
OskarEichler:codex/fix-multidb-removal-fixtures
Sep 14, 2026
Merged

OdenTakashi merged 1 commit into
drwl:mainfrom
OskarEichler:codex/fix-multidb-removal-fixtures

Conversation

@OskarEichler

Copy link
Copy Markdown
Contributor

Annotation removal always passes klass.table_name to related-file discovery. With multiple database classes sharing a table name, removing annotations from a secondary model can therefore target the primary database fixture. Match annotation behavior by supplying the table name only for the primary connection.

Verified with the full 874-example unit suite on Ruby 4.0.6 and 3.2.11, the Rails 8.1 SQLite integration suite, StandardRB, and a focused multi-database removal model.

@OdenTakashi OdenTakashi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this. Looks great to me.

@OdenTakashi
OdenTakashi merged commit 3f971bb into drwl:main Sep 14, 2026
32 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