The annotate_models gem (commonly called annotate) automatically adds a commented schema summary to Rails model files, showing column names and types. Setup takes three steps: add the gem to the development group in Gemfile, run bundle exec annotate to annotate models manually, and run rails g annotate:install to hook into
Table of contents
STEP 1: InstallationSTEP 2: The Magic CommandSTEP 3: Automate It (Auto-Annotate)Bonus: It does more than just ModelsSort: