Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes, Not Detecting Schema Changes After Migration #1022

Open
hatsu38 opened this issue Jul 12, 2024 · 0 comments
Open

Sometimes, Not Detecting Schema Changes After Migration #1022

hatsu38 opened this issue Jul 12, 2024 · 0 comments

Comments

@hatsu38
Copy link

hatsu38 commented Jul 12, 2024

I am experiencing an issue where the annotate gem does not always detect changes in the database schema after performing migrations.

Specifically, changes to indexes and columns are sometimes not reflected in the model annotations.

To work around this, I need to run bin/rails annotate --delete followed by bin/rails annotate_models to see the changes reflected.

I would like annotate to consistently detect and reflect schema changes automatically after every migration.

Commands

$ bin/rails annotate --delete
$ bin/rails annotate_models

Version

  • annotate version: 3.2.0
  • rails version: 7.1.3.4
  • ruby version: 3.3.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant