title: Has and belongs to many with 3 Models
body: <p>What if I had 3 Models that I wanted to connect. </p>
  
  <p>For example:</p>
  
  <p>A user can have many different permissions for many different applications. </p>
  
  <p>So I need a table to store:</p>
  
  <pre><code>user_id
  permission_id
  application_id
  </code></pre>
  
  <p>Is that possible with has_and_belongs_to_many?</p>
  
  <p>Thanks</p>