Edit gems to stick to activerecord 3 & try to fix tests.