# 투표 중복 제거 관련 마이그레이션 문제

**URL:** <https://meta.discourse.org/t/migration-issue-around-de-duping-poll-votes/269653>\
**Category:** Bug\
**Tags:** polls\
**Created:** [6월 26, 2023, 3:38오후 UTC](https://meta.discourse.org/t/migration-issue-around-de-duping-poll-votes/269653 "2023-06-26T15:38:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)\
**Post date:** [6월 27, 2023, 11:01오전 UTC](https://meta.discourse.org/t/migration-issue-around-de-duping-poll-votes/269653/4 "2023-06-27T11:01:19Z")

</div>

안녕하세요 @sweetbeems, 보고해 주셔서 감사합니다.

실제로 해당 마이그레이션에 큰 문제가 있었습니다. [수정 사항이 방금 병합되었습니다](https://github.com/discourse/discourse/pull/22297) 말씀하신 대로 일부 데이터가 삭제되었을 것입니다. 😮‍💨 해당 마이그레이션을 작성한 저로서는 `Post.where(type: "multiple")`(즉, 여러 표을 허용하는 투표)를 전혀 고려하지 못했다는 점을 인정합니다.

백업에서 잃어버린 투표 데이터를 복구할 수 있도록 rake 태스크나 스크립트를 만들 수 있는지 확인해 보겠습니다.

---

_[View the full topic](https://meta.discourse.org/t/migration-issue-around-de-duping-poll-votes/269653)._
