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

EnumValueChecker: Check enums in any order #222

Closed toydestroyer closed 7 months ago

toydestroyer commented 7 months ago

👋

I have recently enabled the EnumValueChecker in our project and noticed that several enum declarations were flagged as inconsistent. This is because our ActiveRecord models' enum declarations do not always match the exact order in PostgreSQL.

I propose that strict literal consistency in this checker may be unnecessary, and this PR addresses that concern.

Looking forward to the feedback.

Thank you!

djezzzl commented 7 months ago

Hi @toydestroyer,

Thank you! Released as 1.7.23! Have a great time!