title: Laravel relationships in migrations?
body: <p>I know you can define table relationships fairly easy with <code>$this-&gt;belongs_to()</code>, <code>$this-&gt;has_many()</code> etc, but what i don't understand is how the relationship table is created; the table that binds the two tables together (i forgot what the term is called).</p>
  
  <p>Let's say i'm creating a users table. I want that user to belong to a certain "Role". There are multiple roles, and every role can have multiple users. I will need to also create a <code>roles</code> table for that. So far, so good.</p>
  
  <p>But after reading the documentation, it says i should add the <code>$this-&gt;belongs_to()</code> in the model, not the migration itself. When, and how is the relationship table created? If i create the <code>roles</code> and <code>users</code> tables, and add <code>$this-&gt;belongs_to('roles')</code> to the <code>users</code> model, and <code>$this-&gt;has_many('users')</code> to the <code>roles</code> model, will the middle table be created automatically?</p>