(Obsolete) Set category tracking level defaults historically

If you promise you have a backup and won’t shoot me no matter what happens, you might want to try this:

User.all.each do |user| CategoryUser.batch_set(user, :regular, [10]) end

This should set the tracking level for all users for category 10 to :regular, adapt as needed. It will overwrite any previous settings users have for that category.

1 Like