Use update_attributes in one transaction