adds support for enum AR method in rails 4.1