A platform for community discussion. Free, open, simple.
DEV: Instruct agents to use `bin/rails generate migration` (#36278)
Gary Pendergastf1e977faae1f
diff --git a/AI-AGENTS.md b/AI-AGENTS.mdindex d8caa3d4e9e..cbf5c02827f 100644--- a/AI-AGENTS.md+++ b/AI-AGENTS.md@@ -73,7 +73,7 @@ ALWAYS lint any changes you make## Database & Performance- ActiveRecord: use `includes()`/`preload()` (N+1), `find_each()`/`in_batches()` (large sets), `update_all`/`delete_all` (bulk), `exists?` over `present?`-- Migrations: rollback logic, `algorithm: :concurrently` for large tables, deprecate before removing columns+- Migrations: rollback logic, `algorithm: :concurrently` for large tables, deprecate before removing columns, use `bin/rails generate migration` for new migrations- Queries: use `explain`, specify columns, strategic indexing, `counter_cache` for counts## HTTP Response Codes