I have an error in my migrations for a fresh application. The app has over 30 migrations, and one of them is causing an error.
Is there a way to migrate five at a time in order to spin through the migrations faster than doing each one individually?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you specify the version you want to get to, it will run the set of migrations that leads up to that version. The version is the numerical prefix on your migration name.
So if you have this set of migrations:
and you just wanted to run the first two, you can do
and it will run the necessary migrations to get to that version (i.e. the first two). Then you could target a later version to run the next group, etc.