From 743ad289324403fafa922b73b8b4e63fbab42e20 Mon Sep 17 00:00:00 2001 From: koeda <658141+koeda-ta@users.noreply.github.com> Date: Sat, 29 Aug 2026 17:38:45 +0900 Subject: [PATCH 1/2] Update annotated model in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 52ba2c0f..82777b77 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ This will copy a rake task into your Rails project's `lib/tasks` directory that $ bin/rails db:migrate # ... # Annotating models -# Annotated (1): app/models/task.rb +# Annotated (1): app/models/user.rb ``` To skip the automatic annotation that happens after a db task, pass the environment variable `ANNOTATERB_SKIP_ON_DB_TASKS=1` before your command. From 8140281bb85219ff0debf22c22cfae9597e9493e Mon Sep 17 00:00:00 2001 From: koeda Date: Mon, 14 Sep 2026 18:37:27 +0900 Subject: [PATCH 2/2] Use User as the example model consistently in README The schema comment example used Task while the annotation output example referenced user.rb. Unify them on User and replace the columns with typical User attributes. --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 82777b77..945b0542 100644 --- a/README.md +++ b/README.md @@ -22,16 +22,17 @@ The schema comment looks like this: ```ruby # == Schema Information # -# Table name: tasks +# Table name: users # -# id :integer not null, primary key -# content :string -# count :integer -# status :boolean -# created_at :datetime not null -# updated_at :datetime not null +# id :integer not null, primary key +# name :string +# email :string +# sign_in_count :integer default(0), not null +# admin :boolean default(FALSE), not null +# created_at :datetime not null +# updated_at :datetime not null # -class Task < ApplicationRecord +class User < ApplicationRecord ... ```