support enum for ActiveRecord 4.x

try to solve issue #102