前提・実現したいこと
Railsでgemのdeviseをインストールしてから不具合が生じてしまいました。
以下のエラーメッセージが出るようになり、おそらくテーブルのemail部分が重複しているのかなと思うのですが、解決策が調べても分かりませんでした。
どのように対処すればいいか、教えていただけると嬉しいです。よろしくお願いします!
発生している問題・エラーメッセージ
Migrations are pending. To resolve this issue, run: bin/rake db:migrate RAILS_ENV=development
エラーメッセージ
Migrations are pending. To resolve this issue, run: bin/rake db:migrate RAILS_ENV=development```
Rails
1ActiveRecord::StatementInvalid: Mysql2::Error: Duplicate column name 'email': ALTER TABLE `users` ADD `email` varchar(255) DEFAULT '' NOT NULL 2
試したこと
rake db:migrateを数回行ってしまった。
あなたの回答
tips
プレビュー