sudo gem install annotate-models
Add a comment summarizing the current schema to the top of each ActiveRecord model source file.
This was created by Dave Thomas as a Rails plugin. This is now a gem that can run from command line
Demonstration of usage
Go to your project dir (RAILS_ROOT), then run:
To remove annotations:
To add annotations at the end of files:
annotate -p after
How to submit patches
The trunk repository is
A svn mirror is on rubyforge
This code is free to use under the terms of the MIT license.
Comments are welcome. Send an email to Cuong Tran