Remove FriendshipInvitationHistory model. Remove the unwanted code so it does not create a friendship history for a user which is being deleted.