开发者

How do Rails associations look behind the scenes?

开发者 https://www.devze.com 2023-01-21 10:59 出处:网络
Can anyone point to some resource which shows how the tables are set up ( for MySQL for example ), on e开发者_StackOverflowach of the Rails associations ( one to one, one-to-many, many to many ). I un

Can anyone point to some resource which shows how the tables are set up ( for MySQL for example ), on e开发者_StackOverflowach 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号