Hacking activerecord