migrate truncate to delete_all method