How to work with PostgreSQL enums in Rails 7
Rails 7 introduced a new way to create enums in PostgreSQL, by adding create_enum method. See official documentation here.
I will explore the following tasks:
Creating an enum type and adding a column to a model with that enum type
How to add a new ...
allaboutcoding.ghinda.com4 min read