提交 e0fdbfd3 编写于 作者: S Sasha Gerrand

- Fixed typo in the example of a self join on a model

上级 fda9c7d0
......@@ -342,7 +342,7 @@ In designing a data model, you will sometimes find a model that should have a re
<ruby>
class Employee < ActiveRecord::Base
has_many :subordinates, :class_name => "Employee"
has_many :subordinates, :class_name => "Employee",
belongs_to :manager, :class_name => "Employee"
:foreign_key => "manager_id"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册