This is likely to break between databases or some change on activerecord internals