Rails app error - ActiveRecord::PendingMigrationError Migrations are pending; run 'rake db:migrate RAILS_ENV=development' to resolve this issue
问题 The database is created, tables are created, data are there. But after I restarted the Rails application, I got this error. The app is using MySQL. What's the issue here? Thank you in advance 回答1: Solution Simply run rake db:migrate There are migrations that need to be ran before your server can start. Learn what migrations are and how they are used in Rails with this RailsGuide. Run that rake db:migrate command any time you make a migration, or any time you create a new project. If you get