# 评测 - 为您的社区添加 Discord 风格的视频和语音房间及通话 🎙

**URL:** <https://meta.discourse.org/t/resenha-add-discord-style-video-and-voice-rooms-and-calls-to-your-community/389056>\
**Category:** Plugin\
**Created:** [2025年十一月19日 16:34 UTC](https://meta.discourse.org/t/resenha-add-discord-style-video-and-voice-rooms-and-calls-to-your-community/389056 "2025-11-19T16:34:26Z")\
**Posts on this page:** 1\
**Showing post:** 80

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2026年八月3日 17:47 UTC](https://meta.discourse.org/t/resenha-add-discord-style-video-and-voice-rooms-and-calls-to-your-community/389056/80 "2026-08-03T17:47:24Z")

</div>

感谢报告，修复已合并

> <https://github.com/discourse/resenha/pull/75>
>
> Previously, deleting a room with any session history raised \`PG::ForeignKeyViola…tion\` (500 in the admin panel), and deleting a user either failed the same way or silently destroyed every room they created through \`dependent: :destroy\`.
> 
> This change drops the sessions/memberships/co-presences/creator foreign keys (post-deploy, matching core's no-FK convention) and moves integrity to application logic: a deleted user's rooms are reassigned to the system user, their memberships and co-presences are removed, and sessions are kept as analytics history — with the admin dashboard rendering \`(deleted room)\` / \`(deleted user)\` for dangling references. Also guards the default room seeder against running before pending migrations, which previously made \`rake db:migrate\` itself crash on a database that was behind.

---

_[View the full topic](https://meta.discourse.org/t/resenha-add-discord-style-video-and-voice-rooms-and-calls-to-your-community/389056)._
