阅读背景:

Rails模型有许多具有多个foreign_key

来源:互联网 

Relatively new to rails and trying to model a very simple family "tree" with a single Person model that has a name, gender, father_id and mother_id (2 parents). Below is basically what I want to do, but obviously I can't repeat the :children in a has_many (the first gets overwritten).Relatively new to rails and trying to model a v




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

分享到: