Define enum classes in Rails and use them to enumerate ActiveRecord attributes