title: SQLite3::ConstraintException: FOREIGN KEY constraint failed: DELETE FROM
body: <p>I feel like I'm missing something very obvious, but what I'm doing is testing the <code>destroy</code> route on my User model.</p>
  
  <p>When I try and <code>@user.destroy</code>, I get the following exception: </p>
  
  <pre><code>*** ActiveRecord::InvalidForeignKey Exception: SQLite3::ConstraintException: FOREIGN KEY constraint failed: DELETE FROM "users" WHERE "users"."id" = ?
  </code></pre>
  
  <p>The only problem is, I already have <code>dependent: :destroy</code> in place for the <code>has_many</code> association, and I have also tried <code>:delete_all</code> to no avail. This is the only association I have to this model right now.</p>
  
  <p>Any ideas? I'm sure its something simple</p>