This is the first post. When creating an application using Rails, when migrating
Multiple migrations have the name
Error occurred, so make a note of how to deal with it as a reminder.
The development environment is ** Ruby_on_Rails vesion 6.0.0 **.
Regarding the error, it seems that it was caused by ** a migration file with the same name already exists **, so check the "migratin directory" of the "db directory". As expected, a file with the same name (created at a different date and time) existed, so the migration file on the unused side was deleted. After that, I was able to avoid the error by executing the migration.
Recommended Posts