gjaldon / ecto_enum

Ecto extension to support enums in models
MIT License
562 stars 131 forks source link

allow empty enums #99

Open tim2CF opened 4 years ago

tim2CF commented 4 years ago

In some cases in development process we should deal with empty enums. For example if actual business logic is not implemented yet, but we know for sure that there will be enum (which is empty atm). Or otherwise - we remove some values and enum become empty. To make development process smoother I want to support empty enums - in this case if business logic changes somehow, we don't need to modify enum-related code at all.