motor-admin / motor-admin-rails

Low-code Admin panel and Business intelligence Rails engine. No DSL - configurable from the UI. Rails Admin, Active Admin, Blazer modern alternative.
https://app.getmotoradmin.com/demo/
MIT License
767 stars 77 forks source link

ENUM Fields are always required #165

Open bruno-berchielli opened 6 months ago

bruno-berchielli commented 6 months ago

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 commented 6 months ago

@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?