public
Fork of ctran/annotate_models
Description: Annotate ActiveRecord models
Homepage: http://agilewebdevelopment.com/plugins/annotate_models
Clone URL: git://github.com/vickeryj/annotate_models.git
Search Repo:
don't include schema version in annotations as that results in massive
changes to files that don't need to be changed
Joshua Vickery (author)
Tue Mar 11 06:33:19 -0700 2008
commit  a2c807b9c18bbbb5f2b0f7c22194947e891d45f2
tree    348ad4bdbdbb2899ae3cf823a0024628378cf149
parent  467978c532cbc0912e2893cc207b00d0d31e1537
...
112
113
114
115
116
117
118
119
120
121
...
132
133
134
135
136
 
...
112
113
114
 
 
 
 
115
116
117
...
128
129
130
 
131
132
0
@@ -112,10 +112,6 @@ module AnnotateModels
0
     # then pas it to the associated block
0
     def do_annotations
0
       header = PREFIX.dup
0
- version = ActiveRecord::Migrator.current_version rescue 0
0
- if version > 0
0
- header << "\n# Schema version: #{version}"
0
- end
0
 
0
       annotated = []
0
       get_model_files.each do |file|
0
@@ -132,4 +128,4 @@ module AnnotateModels
0
       puts "Annotated #{annotated.join(', ')}"
0
     end
0
   end
0
-end
0
\ No newline at end of file
0
+end

Comments

    No one has commented yet.