diff --git a/lib/annotate/annotate_models.rb b/lib/annotate/annotate_models.rb index 3786d221f..bded7b0e6 100644 --- a/lib/annotate/annotate_models.rb +++ b/lib/annotate/annotate_models.rb @@ -477,6 +477,7 @@ def do_annotations(options={}) def annotate_model_file(annotated, file, header, options) begin + return false if (/# -\*- SkipSchemaAnnotations.*/ =~ (File.exist?(file) ? File.read(file) : '') ) klass = get_model_class(file) if klass && klass < ActiveRecord::Base && !klass.abstract_class? && klass.table_exists? if annotate(klass, file, header, options)