ctran/annotate_models — pull request #114 by ryanaking (2013-01-29 03:26:37+00:00)
Title: Fix annotations for enum columns when using enum_column3 gem

Minor change (2 lines) to handle enum columns as per enum_column3 gem: https://github.com/taktsoft/enum_column3 that generates annotations for enum columns as follows:

# status :enum default(:submitted), not null, values: [:submitted, :in_progress, :closed]

which adds the list of enum values at the end instead of the current behavior which generates this:

# status :enum([:submitted default(:submitted), not null

(which as you can see cuts off the list of enum values at 16 characters as part of the type)