Last Updated: February 25, 2016
· tejasbubane

Run a single Rails migration file

Many times the migrations get screwed up when other noobs work with your rails project. Ideally they should be fixed and maintained, but you have a deadline and you gotta just run one or two migrations and get work done and then later fix the migration sequencially. The following line will run a single migration:

rake db:migrate:up VERSION=<version_number>