You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having this issue too, I can verify that I am passing in strings into my changeset, but after the cast step it becomes atom.
defenumStatusEnum,~w(pending_payment cancelled paid refunded pending_collection fulfilled)defchangeset(sales_order,attrs)do# status is string `"pending_payment"` heresales_order|>cast(attrs,[:user_id,:outlet_id,:status,:source])|># status is :pending_payment here|>cast_assoc(:user)
when i try to use EctoEnum with string-backed storage
i've got an error
my enum
when i used defenum, or keywords e.g, it's ok
The text was updated successfully, but these errors were encountered: