User attributes

They can’t be edited because they aren’t part of the user model.

There’s a model that keeps up with what topics a user has viewed (TopicViewItem), so you’d need to clear those (maybe TopicViewItem.destroy_all – no – that doesn’t work.) and then run whatever updates that. And if they were emailed, then the last time they were emailed is going to be the last time they were emailed.

There’s a PostTiming model that keeps up with what posts are read, and
read time. Ah, you can search the source for PostTiming and find something like

      PostTiming.destroy_for(current_user.id, [topic_id])

So that’s a start. Maybe this:

      PostTiming.destroy_for(1, PostTiming.where(user_id: 1).pluck(:topic_id).uniq))

There are some ensureconsistency tasks that might be how to update those, but I’m not quite sure.