The Annotate Gem adds detailed annotations in the model file for each data model.
First, add "gem 'annotate'" to the development group in the Gemfile.
Once installed, run 'annotate --models' in the terminal to annotate all models.
(cont.) If this fails, run 'bundle exec annotate' instead.
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)