This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Chetan Mittal (author)
Wed Nov 05 08:38:11 -0800 2008
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
ChangeLog | ||
| |
README.textile | ||
| |
Rakefile | ||
| |
lib/ | ||
| |
spec/ |
merb_annotate_models
merb_annotate_models annotates your merb app activerecord models with schema details
Version
0.0.2
Install
- Download or git clone merb_annotate_models from merb_annotate_models @ github
- Advanced – Update MERB_VERSION and MERB_AR_VERSION with the latest gems installed on your computer
- run “sudo rake install” – without quotes
Schema format that gets added
Add a comment summarizing the current schema to the top of each ActiveRecord model source file:
- Schema as of Sun Feb 26 21:58:32 CST 2006 (schema version 7) #
- id :integer(11) not null
- quantity :integer(11)
- product_id :integer(11)
- unit_price :float
- order_id :integer(11) #
class LineItem < ActiveRecord::Base belongs_to :product
. . .
Note that this code will blow away the initial comment block in your models if it looks ike it was previously added by annotate models, so you don’t want to add additional text to an automatically created comment block.
Back up your model files before using…
Credits
Rails version:
- Dave Thomas – Pragmatic Programmers, LLC
Merb version:
License
Released under the same license as Ruby. No Support. No Warranty.












