annotate_models icon indicating copy to clipboard operation
annotate_models copied to clipboard

Incorrect annotation of factory files when different models share the same table name in different databases

Open afn opened this issue 4 years ago • 0 comments

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.

afn avatar Jul 28 '21 20:07 afn