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.
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.