Rails 协会在幕后是如何看待的?
任何人都可以指出一些资源,显示如何在每个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://edgeguides.rubyonrails.org/association_basics.html 包含详细介绍数据库列的图像。
http://edgeguides.rubyonrails.org/association_basics.html has images that detail the database columns.