title: Renaming a table that is a foreign key in another table
body: <p>I had a table neighboorhoods and a table schools with a neighboorhood_id field. </p>
  
  <p>When I saw that it was misspelled I wanted to change the name to the correct form. </p>
  
  <p>First I used phpStorm's name refactor tool and changed the model to Neighborhood, then I added the $table = 'neighboorhood'.</p>
  
  <p>Then I made a migration to rename the table, deleted the $table property and everything is working fine. </p>
  
  <p>I thought it was going to throw an error because the foreign key constraint was created this way:</p>
  
  <pre><code>$table-&gt;foreign('neighboorhood_id')-&gt;references('id')-&gt;on('neighboorhoods')-&gt;onDelete('cascade');
  </code></pre>
  
  <p>And now it works without having to update it to:</p>
  
  <pre><code>$table-&gt;foreign('neighborhood_id')-&gt;references('id')-&gt;on('neighborhoods')-&gt;onDelete('cascade');
  </code></pre>
  
  <p>Why didn't I have to modify the constraint? I checked the constraint in the database and now it's pointing to neighborhoods table instead of neighboorhoods.</p>