Allow ~4.0 activerecord.