阅读背景:

一个型号上的has_one与另一个型号上的belongs_to之间有区别吗?

来源:互联网 

I understand that a belongs_to puts the foreign key on the declaring model, and a has_one puts it on the other model. Does that mean there is no difference in this example? I understand that a belongs_to puts the foreign




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: