# 重建用户操作时出现 NoMethodError

**URL:** <https://meta.discourse.org/t/nomethoderror-when-rebuilding-user-actions/149507>\
**Category:** Bug\
**Created:** [2020年四月27日 19:30 UTC](https://meta.discourse.org/t/nomethoderror-when-rebuilding-user-actions/149507 "2020-04-27T19:30:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2020年四月28日 06:29 UTC](https://meta.discourse.org/t/nomethoderror-when-rebuilding-user-actions/149507/3 "2020-04-28T06:29:20Z")

</div>

抱歉，此任务本不应再存在，它已损坏多年。

我已将其移除。

重建用户操作或许可行，但非常复杂，尤其是需要考虑 assign 和 solved 等插件。

> <https://github.com/discourse/discourse/commit/6b62d75c50148c8d7fec044adcf3a3ff099b3501>
>
> rebuilding user\_actions is not something that should be done.
> 
> Plugins such as s…olved and assigned extend it, there are tons of
> little rules that were not captured in \`user\_actions:rebuild\`

---

_[View the full topic](https://meta.discourse.org/t/nomethoderror-when-rebuilding-user-actions/149507)._
