Change activerecord dependency to < 5.0