title: Rails has_many self referential
body: <p>I have an accounts model as follows (simplified):</p>
  
  <pre><code>class Account &lt; ActiveRecord::Base
      attr_accessible :account_number, :display_name, :master_account_id
  
      has_many :child_accounts, :class_name =&gt; "Account", :foreign_key =&gt; "id"
      belongs_to :master_account, :class_name =&gt; "Account", :foreign_key =&gt; "master_account_id"
  end
  </code></pre>
  
  <p><code>@account.master_account</code> is currently working correctly, but I also want to be able to access <code>@account.child_accounts</code> - what do I need to do in order to fix that?</p>