Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 988
Alain Goldman Avatar asked Feb 17 '23 03:02

Alain Goldman


1 Answers

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.

like image 193
Ju Liu Avatar answered Feb 18 '23 17:02

Ju Liu