[WIP] fix some codeclimate findings

- use Arel for enumeration update