How to undo the action of rails db:migrate in Rails 5.0.0.1
<p>When migrating the database, I made a spelling mistake.</p>

<p>I want to generate a scaffold by running:  </p>

<pre><code>rails generate scaffold Micropost context:text user_id:integer
rails db:migrate
</code></pre>

<p>Although I made a mistake by leaving out the colon when I ran:  </p>

<pre><code>rails generate scaffold Micropost context:text user_id integer
rails db:migrate
</code></pre>

<p>I want to undo this migration, how to do it?
(I'm using Rails <code>5.0.0.1</code>)</p>

<p>When I run <code>rails db:migrate</code>, I get an error of:  </p>

<pre><code> SQLite3::SQLException: table "microposts" already exists:
</code></pre>

<p>When I run <code>rails db:migrate:status</code>, I get the following output:  </p>

<pre><code> Status   Migration ID    Migration Name  
 up       20161024021157  Create users  
 up       20161024025545  ********** NO FILE **********  
 down     20161024025805  Create microposts  
</code></pre>

<p>I tried to use <code>rails db:migrate:down VERSION=20161024025805</code>. There wasn't any message showing in the command line. Then I ran <code>rails db:migrate</code>. The error is the same.</p>