Rollback or forward just one migration file

Public, Command Line, Rails General

harrylevine

Created: Jun 17, 2016     Updated: Jan 17, 2017


You can rollback, or forward, just one migration file, regardless of where it is in the stack. Thereby putting it in either the down, or up, status.

Here is the syntax:

rake db:migrate:down VERSION=20160506010740
rake db:migrate:up VERSION=20160506010740