Make the new ActiveRecord::Base#enum in Rails4 also works for Rails3