Skip to content

Sometimes, Not Detecting Schema Changes After Migration #1022

Open
@hatsu38

Description

@hatsu38

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions