How would I test if an ActiveRecord attribute is an Enum? (as per Rails 4.1 enum declaration)
It's stored in the database and using the type method on columns_hash identifies the attribute as an integer.
Enum definition in model
enum status: [ :in_progress, :accepted, :approved, :declined, :closed, :cancelled, :submitted ]
To pull the type
irb(main):030:0> Application.columns_hash['status'].type
=> :integer