Commit 935e9412 by Joshua Vickery Committed by Henrik N

don't include schema version in annotations as that results in massive

changes to files that don't need to be changed
parent 60fc98a2
...@@ -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|
...@@ -173,4 +169,4 @@ module AnnotateModels ...@@ -173,4 +169,4 @@ module AnnotateModels
puts "Removed annotaion from: #{deannotated.join(', ')}" puts "Removed annotaion 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