# 直接写入数据库

**URL:** <https://meta.discourse.org/t/writing-directly-to-the-database/300651>\
**Category:** Development\
**Created:** [2024 年3 月 23 日 13:01 UTC](https://meta.discourse.org/t/writing-directly-to-the-database/300651 "2024-03-23T13:01:14Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2024 年3 月 23 日 14:46 UTC](https://meta.discourse.org/t/writing-directly-to-the-database/300651/6 "2024-03-23T14:46:18Z")

</div>

我建议你弄清楚如何使用 API。Rails 会处理很多魔法。你很有可能会做出一些导致数据库无法使用的操作。

---

_[View the full topic](https://meta.discourse.org/t/writing-directly-to-the-database/300651)._
