---
title: "My Favorite Rails Productivity Gem: annotate_models"
url: https://daily.dev/posts/my-favorite-rails-productivity-gem-annotate-models-zomtzin9v
source_url: https://norvilis.com/my-favorite-rails-productivity-gem-annotate-models
type: article
source: "Ruby Flow"
published: 2026-03-27T06:22:09.942Z
updated: 2026-03-27T06:22:34.616Z
tags: ["productivity", "ruby", "rails"]
reading_time: 3
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# My Favorite Rails Productivity Gem: annotate_models

**[Ruby Flow](https://daily.dev/sources/rubyflow)** · 3 min read · 0 upvotes · 0 comments

## Summary

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 ActiveRecord migrations so annotations update automatically after every db:migrate or db:rollback. Beyond models, it also annotates RSpec/Minitest test files, FactoryBot factories, and routing files.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://norvilis.com/my-favorite-rails-productivity-gem-annotate-models>

## Similar posts on daily.dev

- [Railsmaxxing, or hidden Rails gems](https://daily.dev/posts/railsmaxxing-or-hidden-rails-gems-f58azip3g) · Ruby Flow · 0 upvotes · 0 comments
- [Rails Generate Model: Beginner’s Guide to Database Models](https://daily.dev/posts/rails-generate-model-beginner-s-guide-to-database-models-wta8yzvcf) · RUBYLAND · 0 upvotes · 0 comments
- [One year of Ruby on Rails configuration](https://daily.dev/posts/one-year-of-ruby-on-rails-configuration-3xgfj4tsp) · RUBYLAND · 2 upvotes · 0 comments
- [alec-c4/auto\_decorator: Convention-based decorator autoloading for Rails models.](https://daily.dev/posts/alec-c4-auto-decorator-convention-based-decorator-autoloading-for-rails-models--wwj9ybqdl) · Ruby Flow · 0 upvotes · 0 comments

---

Tags: [#productivity](https://daily.dev/tags/productivity), [#ruby](https://daily.dev/tags/ruby), [#rails](https://daily.dev/tags/rails)

[View this post on daily.dev](https://daily.dev/posts/my-favorite-rails-productivity-gem-annotate-models-zomtzin9v)
