logical model of object relationship 对象关系逻辑模型
In contrast, if you take a moment to identify the stable relationship in your object model, then you can derive a more stable vocabulary at minimal cost.
相反,如果花点时间确定对象模型中稳定的关系,那么可以用最小的代价派生出更稳定的词汇表。
You need to make changes to the comment to capture the belongs_to relationship and write the new migration. Listing 11 shows the model object and new migration.
需要对评论进行修改,捕捉belongs _ to关系,并编写新的迁移。
Another type of mapping is when a table might have a one-to-one relationship but your object model only has one object.
另一映射类型是,表可能有一对一关系,但对象模型只有一个对象。
应用推荐