提交 2fae4299 编写于 作者: S sgerrand

Merge pull request #41 from sgerrand/master

Corrected foreign key parameter placement in the self join example
......@@ -343,8 +343,8 @@ 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",
:foreign_key => "manager_id"
belongs_to :manager, :class_name => "Employee"
:foreign_key => "manager_id"
end
</ruby>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册