그룹에서 사용자가 삭제된 후에도 사용자 플레어가 유지됩니다

User.where(flair_group_id: REPLACE_WITH_GROUP_ID).where.not(primary_group_id: REPLACE_WITH_GROUP_ID).update_all(flair_group_id: nil)

The above command can fix your issue. Run this in your rails console. Please take a backup before performing it.