Fix older activerecord