annotate_models
annotate_models copied to clipboard
Incorrect annotation of factory files when different models share the same table name in different databases
Given a Rails application with multiple databases, tables in two databases with the same table name, and corresponding models with different names, some files get annotated with the wrong table's schema.
The issue is that some of the patterns include %TABLE_NAME%, which will be identical between the two tables, even though they have different model names.
I'll be following up with a PR shortly to address the issue.