###環境
- Ruby 2.2.3
- Rails 4.2.4
- MySQL5.6系
###発生している問題・エラーメッセージ
bundle exec rake db:migrate
を実行した際に下記のエラーが出て、Record not foundが出てしまいます。
StandardError: An error has occurred, all later migrations canceled: Couldn't find Country with 'id'=12/Users/username/Repository/hoge/db/migrate/hogehoge.rb:5:in `change' ActiveRecord::RecordNotFound: Couldn't find Country with 'id'=12 /Users/username/Repository/hoge/db/migrate/hogehoge.rb:5:in `change' Tasks: TOP => db:migrate
###試したこと
一度データベースを削除して、rake db:create
を実行し、rake db:migrate
をしても上記のエラーが出てしまいます。
上記エラーに似た症状を目にした方はいますでしょうか
回答1件
あなたの回答
tips
プレビュー