ctran/annotate_models

Active Admin not working when running migrations

Opened this issue · 0 comments

When running migrations in rails, I wan't my active admin files to be annotated. This is not happing

lib/task/auto_annotate_models.rake

    Annotate.set_defaults(
      'active_admin'                => 'true',
      'additional_file_patterns'    => [],
      'routes'                      => 'false',

.env

ACTIVE_ADMIN=true

Commands

$ bundle exec rake db:migrate

Version

  • annotate version(3.2.0)
  • rails version(7.0.8)
  • ruby version(3.1.4)