annotaterb icon indicating copy to clipboard operation
annotaterb copied to clipboard

fix: use model name for file retrieval when not connected to the primary DB.

Open OdenTakashi opened this issue 9 months ago • 0 comments

When the same table name exists in different databases, attempting to retrieve fixture and factory files references them by the table name. As a result, in addition to the fixtures and factories of models connected to the secondary database, related files from the primary database are also retrieved.

Therefore, this commit modifies the behavior so that for models connected to the secondary database, related files are retrieved based on the model name instead of the table name.

fixes #206

OdenTakashi avatar Mar 31 '25 07:03 OdenTakashi