We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Same, how can I do this?
Sorry, something went wrong.
No branches or pull requests
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
:The text was updated successfully, but these errors were encountered: