Home>

I tried to migrate the users table with the rails db: migrate command, but I got an error saying that it had already been created.
However, when I checked the status, it remained down. I would appreciate it if you could teach me how to migrate normally.

Terminal 
rails db: migrate
== 20201204122031 DeviseCreateUsers: migrating ================================
--create_table (: users)
rails aborted!
StandardError: An error has occurred, all later migrations canceled:
Mysql2 :: Error: Table'users' already exists
/Users/nishio/projects/furima-31536/db/migrate/20201204122031_devise_create_users.rb:5:in `change'
/ Users/nishio/projects/furima-31536/bin/rails: 9: in `<top (required)>'
/ Users/nishio/projects/furima-31536/bin/spring: 15: in `<top (required)>'
bin/rails: 3: in `load'
bin/rails: 3: in `<main>'
Caused by:
ActiveRecord :: StatementInvalid: Mysql2 :: Error: Table'users' already exists
/Users/nishio/projects/furima-31536/db/migrate/20201204122031_devise_create_users.rb:5:in `change'
/ Users/nishio/projects/furima-31536/bin/rails: 9: in `<top (required)>'
/ Users/nishio/projects/furima-31536/bin/spring: 15: in `<top (required)>'
bin/rails: 3: in `load'
bin/rails: 3: in `<main>'
Caused by:
Mysql2 :: Error: Table'users' already exists
/Users/nishio/projects/furima-31536/db/migrate/20201204122031_devise_create_users.rb:5:in `change'
/ Users/nishio/projects/furima-31536/bin/rails: 9: in `<top (required)>'
/ Users/nishio/projects/furima-31536/bin/spring: 15: in `<top (required)>'
bin/rails: 3: in `load'
bin/rails: 3: in `<main>'
Tasks: TOP =>db: migrate
(See full trace by running task with --trace)
database: furima_31536_development
 Status Migration ID Migration Name
--------------------------------------------------
   up 000 ********** NO FILE **********
  down 20201204122031 Devise create users

What I tried
-The bundle exec rake db: migrate: up 20201204122031 command tried to bring a specific file up.
-Try to lower unnecessary files with bundle exec rake db: migrate: down 000.
-Reset with rails db: reset.