尊敬的客服团队,
谢谢 ![]()
我只是打开了所有已关闭的旧主题!
Topic.where(closed: true).where("created_at < '2015-01-01'").find_each do |topic|
topic.update_status('closed', false, Discourse.system_user)
end
尊敬的客服团队,
谢谢 ![]()
我只是打开了所有已关闭的旧主题!
Topic.where(closed: true).where("created_at < '2015-01-01'").find_each do |topic|
topic.update_status('closed', false, Discourse.system_user)
end