I’m seeing this on one of the discourse I manage, when trying to move two posts to a new topic
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_topic_users_on_topic_id_and_user_id" DETAIL: Key (topic_id, user_id)=(266, 177) already exists. : INSERT INTO topic_users(user_id, topic_id, notification_level, notifications_reason_id) SELECT user_id, 266, 3, 6 FROM category_users WHERE notification_level = 3 AND category_id = 24 AND NOT EXISTS(SELECT 1 FROM topic_users WHERE topic_id = 266 AND user_id = category_users.user_id) )
I’ve upgraded to latest, and still see it.
What can I do here?