class Post < ApplicationRecord
enum status: %i[draft reviewed published], _default: "draft"
enum category: { rails: "Rails", react: "React" }, _default: "Rails"
end
https://blog.bigbinary.com/2020/07/21/rails-6-1-allows-enums-attributes-to-have-default-value.html