Getting Valid ENUM Values in ActiveRecord

I think you can just use:


Also, have you look at the Acts As Enumerated plugin. It may solve the problem you are working on, and even if it doesn’t the code it will be give you an example of how to extend Active Record.