Home > Rails > Manually Set Rails Migration Version

Manually Set Rails Migration Version

October 28th, 2007

Here’s another piece of info that wasn’t easy to discover using the Google query I expected.  If you should ever find yourself needing to explicitly set the migration version that Rails thinks you are at, perform the following steps:

1.  Open your Database (using MySQL, this should be something like “mysql -h localhost -u root -p”, followed by “use [database name];” in the MySQL console)

2. Run “Update schema_info SET version=[version number];”

And you’re done!

Bill Rails

  1. No comments yet.
  1. No trackbacks yet.