« return

Rails 2.1 migrations conversion

04-Sep-2008, Ant

If after upgrading to Rails 2.1 your migrations try and go from the first migration you need to populate the schema migrations table with all migrations that have been done.   

Use the following sql statement, if you have to many migrations for this a ruby script with loop for the number of migrations should work well.

INSERT INTO schema_migrations VALUES ('1'),('2'),('3'),('4'),('5')