User.where(flair_group_id: REPLACE_WITH_GROUP_ID).where.not(primary_group_id: REPLACE_WITH_GROUP_ID).update_all(flair_group_id: nil)
위 명령어로 문제를 해결할 수 있습니다. rails console에서 이 명령어를 실행하세요. 실행하기 전에 반드시 백업을 해두시기 바랍니다.
User.where(flair_group_id: REPLACE_WITH_GROUP_ID).where.not(primary_group_id: REPLACE_WITH_GROUP_ID).update_all(flair_group_id: nil)
위 명령어로 문제를 해결할 수 있습니다. rails console에서 이 명령어를 실행하세요. 실행하기 전에 반드시 백업을 해두시기 바랍니다.