Add support for enum for Rails 4