diff options
author | francis <francis> | 2007-12-11 12:16:29 +0000 |
---|---|---|
committer | francis <francis> | 2007-12-11 12:16:29 +0000 |
commit | 38732c1cd909d7566956aecb54187cbaec26309d (patch) | |
tree | 132fa2487b7c7ba73ba03b037fd41ec9d74b37cb /vendor/plugins/annotate_models/README | |
parent | 77f2ceeb179b8143d0a34991fb64d0561007330d (diff) |
Annotate model files with their members.
Type "rake annotate_models" to do this.
Diffstat (limited to 'vendor/plugins/annotate_models/README')
-rw-r--r-- | vendor/plugins/annotate_models/README | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vendor/plugins/annotate_models/README b/vendor/plugins/annotate_models/README new file mode 100644 index 000000000..f1f1dff55 --- /dev/null +++ b/vendor/plugins/annotate_models/README @@ -0,0 +1,31 @@ +AnnotateSchema +============== + +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. + +Author: + Dave Thomas + Pragmatic Programmers, LLC + +Released under the same license as Ruby. No Support. No Warranty. + +Back up your model files before using... + |