annotate_models icon indicating copy to clipboard operation
annotate_models copied to clipboard

Annotate Rails classes with schema and routes info

Results 138 annotate_models issues
Sort by recently updated
recently updated
newest added

Add (silent) support for Sorbet comments, `# typed: ...`

Hi everyone! I am getting a weird behavior whenever I have `typed` comment from Sorbet at the top. When I run `rake db:migrate` it moves the `typed` comment at the...

This fixes https://github.com/ctran/annotate_models/issues/696 Major version bump is required because of minimum rails >= 5.0

feature
needs-rebase

1. set `classified_sort` to `true` in `Annotate.set_defaults` 2. run `bin/annotate` 3. set `classified_sort` to `false` 4. run `bin/annotate` The annotations remain the same as after step 2. If I run...

When there are already comments above a class definition, AnnotateModels deletes them when regenerating annotations. Here's a short video showing the issue: https://cln.sh/Iw7NsPk7yEfmkyPWtIim ## Version - annotate version: 3.2 -...

I have a project where many files in `app/models` are not actually models. With `'ignore_unknown_models' => 'true'` they are skipped by `bin/annotate` as expected, but ``` alexey@DESKTOP-41AVESA:~/shaka/blade$ bin/annotate -d Traceback...

Describe your problem here. I'd like to config so that annotations are appended to the bottom of the file, rather than the top. ## Commands ``` annotate --models ``` ##...

This resolves https://github.com/ctran/annotate_models/issues/917 It would be useful for many people because table comment is recommended as described in the rails guide. https://guides.rubyonrails.org/active_record_migrations.html > It's highly recommended to specify comments in...

feature
needs-rebase

The docs says ``` To annotate just your models: annotate --models ``` but in fact this commands annotates models AND factories and specs unless you specify -exclude... option which is...

I wanted to switch the default formatter to YARD and from what I see bigint columns are not interpreted correctly ## Commands ``` bundle exec annotate --models --show-foreign-keys -f yard...