Alain Goldman
Alain Goldman

Reputation: 2908

How do you undo a rollback (rollforward?)

I'm new to rails and by mistake I did a rollback. Is there anyway to do a rollforward?

also is there a command to check out which migrations i have no migrated yet. Thanks!

Upvotes: 4

Views: 3903

Answers (1)

Ju Liu
Ju Liu

Reputation: 3999

rake db:migrate

should rerun everything

In order to see which is the last migration you have run, you can check the schema_migrations table inside your database. The last row is generally the last run migration.

Upvotes: 8

Related Questions