title: Laravel Migration Error "Cannot add foreign key constraint"
body: <p>I'm trying to run my migrations but keep getting the following error.</p>
  <pre><code> SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table `votes` add constraint `votes_topic_id_foreign` foreign key (`topic_id`) references `voting_topic_results` (`division_id`))
  </code></pre>
  <p>I have tried both solutions in <a href="https://stackoverflow.com/questions/43673142/sqlstatehy000-general-error-1215-cannot-add-foreign-key-constraint-laravel/55878646">this</a> post with no joy.</p>
  <p>My two migration files are:</p>
  <p>voting_topic_results</p>
  <pre><code>public function up()
  {
      Schema::create('voting_topic_results', function (Blueprint $table) {
          $table-&gt;id();
          $table-&gt;integer('division_id');
          $table-&gt;dateTime('date');
          $table-&gt;string('title');
          $table-&gt;string('description')-&gt;nullable();
          $table-&gt;integer('aye_count');
          $table-&gt;integer('noe_count');
      });
  }
  </code></pre>
  <p>votes</p>
  <pre><code>public function up()
  {
      Schema::create('votes', function (Blueprint $table) {
          $table-&gt;id();
          $table-&gt;integer('topic_id');
          $table-&gt;foreign('topic_id')-&gt;references('division_id')-&gt;on('voting_topic_results');
          $table-&gt;integer('user_id');
          $table-&gt;foreign('user_id')-&gt;references('id')-&gt;on('users');
          $table-&gt;integer('user_aye_count')-&gt;nullable();
          $table-&gt;integer('user_noe_count')-&gt;nullable();
          $table-&gt;unique(['topic_id', 'user_id']);
      });
  }
  </code></pre>
  <p>EDIE***</p>
  <p>I've updated my code to what the related question was referring to and I'm still getting the same error.</p>