ctran / annotate_models

Annotate Rails classes with schema and routes info
Other
4.41k stars 598 forks source link

Active Admin not working when running migrations #1002

Open antarr opened 8 months ago

antarr commented 8 months ago

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