ユーザー間のトピックの一括再割り当て

スタッフの異動に伴い、トピックやメッセージをあるユーザーから別のユーザーへ一括で再割り当てする方法(rake タスクやコマンドラインでのデータベースクエリでも構いません)をご教示いただければ幸いです。これは当コミュニティで頻繁に必要となる要件です。現在、約100件のトピックが割り当てられたユーザーがおり、これを他者に引き継ぐ必要があります。

「いいね!」 2

I don’t have an instance where I have assigned stuff to figure it out. If you’re desperate and have a budget, I can help.

I don’t have a budget, sadly. Thanks for the offer, though! I think I will just work my way through this list.

This situation comes up periodically and I am always wishing there were a quick fix, but at the end of the day it typically is better anyway to just buckle down and take a few hours to look at the tickets and close them or reassign them to somebody else.

「いいね!」 1
### Change post ownership
rake users:change_post_ownership["old","new"]
rake users:change_post_ownership["old","new",private]
「いいね!」 3

thanks @omarfilip! Do those rake tasks change author of post or change who it is assigned to?

Oh, I may have misunderstood the question. The one above is for post author, not assignment. :slightly_frowning_face:

「いいね!」 3