Closed fidalgo closed 9 months ago
This doesn't sound like a bug as a default value doesn't prevent the color from creating a model with an explicit nil value. For example:
Profile.create!(kind: nil)
I think in this case active_record_doctor
discovered an actual bug or edge case in your code. I recommend that you ignore that warning via configuration or add a strict validator.
If you have a model, where an enum is defined with a
default
(or_default
_ keyword) like this: