forked from smtlaissezfaire/annotate_models_svn_clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
31 lines (22 loc) · 875 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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...