Open maxschmeling opened 8 years ago
I get an error when trying to map enum values explicitly (as can be done with ActiveRecord::Enum).
ActiveRecord::Enum
For example:
# see https://en.wikipedia.org/wiki/ISO/IEC_5218 enum :sex, { unknown: 0, male: 1, female: 2, not_applicable: 9 }
The error is in create_validations:
create_validations
undefined method `to_sym' for [:unknown, 0]:Array
Same, how can I do this?
I get an error when trying to map enum values explicitly (as can be done with
ActiveRecord::Enum
).For example:
The error is in
create_validations
: