阅读背景:

连接表的ActiveRecord关系链接同一个表的两个记录?

来源:互联网 

I have a Character model and a Link model. The Link model represents a link from a character to another character. A link has a textual 'description' attribute. A link from character A to character B is distinct from the opposite link from B to A. A character has zero or one link to another character. A character may have various links to different characters. A character may be linked to by various different characters.I have a Character model and a Link model. The




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

分享到: