Fixed some dependencies of overriding read_attribute and attributes for in activerecord enum