-
Couldn't load subscription status.
- Fork 22k
Open
Labels
Description
Previously enums without keywords were always mapped to integers and indexed by position, now it is converted based on the column type, it works for strings and database enums as well.
# Before enum status: { proposed: "proposed", written: "written", published: "published" } # After enum status: [:proposed, :written, :published]We can't connect to the database when evaluating the enum call, so we would need to delay the database type inflection possibly to the first usage of the enum.
dhh, Jay0921, felixefelip, victorsmoreira and MatheusRich