rake db:migrateをするとエラーがでて困っています。
環境
ruby 2.6.6
rails 5.2.4.2
MySQL 5.7
確認したこと
mysqlの公式サイト確認
mysqlの再インストール
bundle exec rake db:migrate
エラー内容
rake aborted! ArgumentError: Unknown migration version "6.0"; expected one of "4.2", "5.0", "5.1", "5.2" /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration/compatibility.rb:11:in `find' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:536:in `[]' /Users/kawasetakuya/Desktop/PF2/recogour/db/migrate/20200515154118_devise_create_users.rb:3:in `<main>' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.7/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `block in require' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:257:in `load_dependency' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `require' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:986:in `load_migration' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:982:in `migration' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:977:in `disable_ddl_transaction' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1350:in `use_transaction?' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1297:in `rescue in execute_migration_in_transaction' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1285:in `execute_migration_in_transaction' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1263:in `block in migrate_without_lock' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1262:in `each' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1262:in `migrate_without_lock' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1210:in `block in migrate' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1363:in `with_advisory_lock' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1210:in `migrate' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1036:in `up' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1011:in `migrate' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:172:in `migrate' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' /Users/kawasetakuya/.rbenv/versions/2.6.6/bin/bundle:23:in `load' /Users/kawasetakuya/.rbenv/versions/2.6.6/bin/bundle:23:in `<main>' Caused by: ArgumentError: Unknown migration version "6.0"; expected one of "4.2", "5.0", "5.1", "5.2" /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration/compatibility.rb:11:in `find' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:536:in `[]' /Users/kawasetakuya/Desktop/PF2/recogour/db/migrate/20200515154118_devise_create_users.rb:3:in `<main>' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.7/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `block in require' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:257:in `load_dependency' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `require' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:986:in `load_migration' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:982:in `migration' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:977:in `disable_ddl_transaction' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1350:in `use_transaction?' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1342:in `ddl_transaction' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1263:in `block in migrate_without_lock' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1262:in `each' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1262:in `migrate_without_lock' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1210:in `block in migrate' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1363:in `with_advisory_lock' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1210:in `migrate' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1036:in `up' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/migration.rb:1011:in `migrate' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:172:in `migrate' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>' /Users/kawasetakuya/Desktop/PF2/recogour/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' /Users/kawasetakuya/.rbenv/versions/2.6.6/bin/bundle:23:in `load' /Users/kawasetakuya/.rbenv/versions/2.6.6/bin/bundle:23:in `<main>' Tasks: TOP => db:migrate (See full trace by running task with --trace)
どなたかアドバイス等いだだければ幸いです。
お願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/08/04 13:22