Make it accept activerecord 4.2