Migrations are pending. To resolve this issue, run: bin/rails db:migrate RAILS_ENV=development の対処法

rails serverした時に以下のエラーが出ました。

Migrations are pending. To resolve this issue, run: bin/rails db:migrate RAILS_ENV=development

解決方法としては簡単で、エラー文にある通り

bin/rails db:migrate RAILS_ENV=development

を実行すれば解決します。

コメント