Skip to content
New issue

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

ENUM Fields are always required #165

Open
bruno-berchielli opened this issue May 3, 2024 · 1 comment
Open

ENUM Fields are always required #165

bruno-berchielli opened this issue May 3, 2024 · 1 comment

Comments

@bruno-berchielli
Copy link

bruno-berchielli commented May 3, 2024

Captura de Tela 2024-05-03 às 14 22 09

This happens even then there is no validation at the model setting presence: true

pry(main)> ModelClass.last.update(feed_ingestion_type: nil)
true
@nekapoor
Copy link

nekapoor commented May 7, 2024

@bruno-berchielli this is an issue for us as well. Seems like by design? Because if you have an enum, it should be populated with some value (even if in rails, a nil is allowed)?

Have you found a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants