When I create a new migration file and run rails db: migrate, I get the above error. I'm angry that the newly created relationships already exist.
It was solved by the following measures.
① Delete DB
② Recreate DB
③ rails db: migrated and solved
Recommended Posts