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.