ActiveRecord adapter after_commit hook on update

`ActiveRecord` adapter `after_commit` hook on update should only update the document if the record has changed as is the convention with ActiveRecord instances themselves.

I would be happy to write a test if this is an acceptable change. It's not completely clear from the README how to setup the db for the test suite so I had failures when I ran them and didn't take the time to figure it out.