Skip to content

Commit

Permalink
don't include schema version in annotations as that results in massive
Browse files Browse the repository at this point in the history
changes to files that don't need to be changed
  • Loading branch information
Joshua Vickery committed Mar 11, 2008
1 parent 467978c commit a2c807b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/annotate_models.rb
Expand Up @@ -112,10 +112,6 @@ def get_model_class(file)
# then pas it to the associated block
def do_annotations
header = PREFIX.dup
version = ActiveRecord::Migrator.current_version rescue 0
if version > 0
header << "\n# Schema version: #{version}"
end

annotated = []
get_model_files.each do |file|
Expand All @@ -132,4 +128,4 @@ def do_annotations
puts "Annotated #{annotated.join(', ')}"
end
end
end
end

0 comments on commit a2c807b

Please sign in to comment.