Commit 78dc09ca by Daniel Morrison

Merge branch 'master' of git://github.com/dustin/annotate_models

parents 753091c5 40acc884
...@@ -130,10 +130,6 @@ module AnnotateModels ...@@ -130,10 +130,6 @@ module AnnotateModels
# then pas it to the associated block # then pas it to the associated block
def do_annotations(options={}) def do_annotations(options={})
header = PREFIX.dup header = PREFIX.dup
version = ActiveRecord::Migrator.current_version rescue 0
if version > 0
header << "\n# Schema version: #{version}"
end
annotated = [] annotated = []
get_model_files.each do |file| get_model_files.each do |file|
...@@ -177,4 +173,4 @@ module AnnotateModels ...@@ -177,4 +173,4 @@ module AnnotateModels
puts "Removed annotation from: #{deannotated.join(', ')}" puts "Removed annotation from: #{deannotated.join(', ')}"
end end
end end
end end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment