djezzzl / database_consistency

The tool to avoid various issues due to inconsistencies and inefficiencies between a database schema and application models.
MIT License
1.02k stars 43 forks source link

Improve MissingAssociationClassChecker #210

Closed djezzzl closed 1 year ago

eduardoj commented 1 year ago

Hi again @djezzzl!

I tried the new version of the gem, which includes this patch, with the wrong setup of my Rails applicaction. Now it answers with a nice error message:

> bundle exec database_consistency -c .database_consistency.todo.yml
Loaded configurations: .database_consistency.todo.yml
MissingAssociationClassChecker fail Kiwi::Package kiwi_image refers to undefined model
> 

It works like a charm!

Thanks for the improvement!

djezzzl commented 1 year ago

Hi @eduardoj,

I'm glad to hear that!