[RAILS] Mysql2 :: Error: Table'relationships' already exists

スクリーンショット 2020-10-03 12.57.45.png

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.

スクリーンショット 2020-10-03 13.03.15.png ① Delete DB

スクリーンショット 2020-10-03 13.02.03.png

② Recreate DB

③ rails db: migrated and solved

Recommended Posts

Mysql2 :: Error: Table'relationships' already exists
(Solution) Mysql2 :: Error: Table'users' already exists
[Deployment error] Mysql2 :: Error: Table'~' already exists: CREATE TABLE `~`
MySql connection error
Resolve Mysql2 :: Error :: ConnectionError
[Rails] PG :: DuplicateTable: ERROR: relation "users" How to resolve already exists