Update dependencies

That. Testing against the latest version of activerecord exposed a performance regression which it would be good to fix asap!