Commit e84f1f3e by Cuong Tran

Merge pull request #342 from akihiro17/reset-column-info

Annotate should reset the cached information about columns
parents f1fa3510 528c0df7
...@@ -459,6 +459,7 @@ module AnnotateModels ...@@ -459,6 +459,7 @@ module AnnotateModels
# #
def annotate(klass, file, header, options={}) def annotate(klass, file, header, options={})
begin begin
klass.reset_column_information
info = get_schema_info(klass, header, options) info = get_schema_info(klass, header, options)
model_name = klass.name.underscore model_name = klass.name.underscore
table_name = klass.table_name table_name = klass.table_name
......
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