class AwsRecord::Generators::GeneratedAttribute
def parse(field_definition)
def parse(field_definition) name, type, opts = field_definition.split(':') type ||= 'string' if OPTS.any? { |opt| type.include? opt } opts = type type = 'string' end opts = opts.split(',') if opts type, opts = parse_type_and_options(name, type, opts) validate_opt_combs(name, type, opts) new(name, type, opts) end