Rails 协会在幕后是如何看待的?

发布于 2024-09-28 11:05:52 字数 110 浏览 1 评论 0原文

任何人都可以指出一些资源,显示如何在每个 Rails 关联(一对一、一对多、多对多)上设置表(例如 MySQL)。我从 Rails 的角度理解这些关联是如何工作的,但从数据库的角度我不明白它们是如何工作的。

Can anyone point to some resource which shows how the tables are set up ( for MySQL for example ), on each of the Rails associations ( one to one, one-to-many, many to many ). I understand how the associations work from a Rails point of view, but I don't understand how they work from the database's side.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我为君王 2024-10-05 11:05:52

http://edgeguides.rubyonrails.org/association_basics.html 包含详细介绍数据库列的图像。

http://edgeguides.rubyonrails.org/association_basics.html has images that detail the database columns.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文