Upgrade Rails Database in Production Environment
Tuesday, February 16th, 2010 | Author:

To upgrade a database which is not in the development environment, use the RAILS_ENV parameter to rake db:migrate.

For example:
$ rake db:migrate RAILS_ENV="production" VERSION=9