DEV Community

austinmei5
austinmei5

Posted on

Annotate Gem

The Annotate Gem adds detailed annotations in the model file for each data model.

  1. First, add "gem 'annotate'" to the development group in the Gemfile.

  2. Once installed, run 'annotate --models' in the terminal to annotate all models.

  3. (cont.) If this fails, run 'bundle exec annotate' instead.

  4. We can also do 'rails g annotate:install' to create a rake task that will create annotations anytime we do rails db:migrate.

Top comments (0)