implemented ActiveRecord enum