djezzzl / database_consistency

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

Improve Documentation to describe how to work with indexes #219

Open yashka713 opened 11 months ago

yashka713 commented 11 months ago

For example, I have a User model with Devise inside. Devise generates a batch of columns and indexes for them:

Columns:

And indexes:

Currently, documentation does not clearly describe how to work with indexes. So could you copy this to the database configuration example?

User:
  index_users_on_less_password_token:
    UniqueIndexChecker:
      enabled: false
  index_users_on_reset_password_token:
    UniqueIndexChecker:
      enabled: false
  index_users_on_invitation_token:
    UniqueIndexChecker:
      enabled: false