Skip to content

Commit e84f1f3

Browse files
committed
Merge pull request #342 from akihiro17/reset-column-info
Annotate should reset the cached information about columns
2 parents f1fa351 + 528c0df commit e84f1f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/annotate/annotate_models.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ def matched_types(options)
459459
#
460460
def annotate(klass, file, header, options={})
461461
begin
462+
klass.reset_column_information
462463
info = get_schema_info(klass, header, options)
463464
model_name = klass.name.underscore
464465
table_name = klass.table_name

0 commit comments

Comments
 (0)