Fixing activerecord build