Relax activerecord dependency to support rails 4.1