# 私人消息迁移未发生，Rails 控制台卡住不动

**URL:** <https://meta.discourse.org/t/private-message-migration-are-not-happening-rails-console-getting-hanged/326671>\
**Category:** Migration\
**Created:** [2024 年9 月 16 日 14:14 UTC](https://meta.discourse.org/t/private-message-migration-are-not-happening-rails-console-getting-hanged/326671 "2024-09-16T14:14:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![domainghost](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@domainghost](https://meta.discourse.org/u/domainghost)\
发布日期： [2024 年9 月 16 日 14:14 UTC](https://meta.discourse.org/t/private-message-migration-are-not-happening-rails-console-getting-hanged/326671/1 "2024-09-16T14:14:23Z")

</div>

我正在尝试将私信从 smf 迁移到 discourse，所有数据都已迁移，只剩下私信。所以我写了一个外部脚本来处理私信，但当我运行脚本时，主题被创建了，但在尝试创建帖子时，它每次都会卡住，有人能帮我解决这个问题吗？  
我尝试逐个插入数据，但当我遇到错误时，我尝试使用数组，首先我将所有数据存储到一个数组中，然后我将该数组插入数据库，但即使在那时，系统也会在数组创建时挂起。  
如果有人能帮助我摆脱这个问题，那将是巨大的帮助。  
提前感谢！！

---

_[View the full topic](https://meta.discourse.org/t/private-message-migration-are-not-happening-rails-console-getting-hanged/326671)._
