TIL that ActiveRecord enum fields also automatically define a bunch of instance methods and class-level scopes depending on the enum values, and this is exactly the kind of ✨Rails Magic✨ that I have come to resent 😬 https://api.rubyonrails.org/v5.2.6/classes/ActiveRecord/Enum.html
Did you like this post, repost it, or respond to it? Let me know by sending a webmention!