ActiveRecord::PendingMigrationError

Hi Alex, I'm getting this error when trying to access my localhost: "Migrations are pending; run 'bin/rake db:migrate RAILS_ENV=development' to resolve this issue." I've ran that command, restarted rails server, started server again, yet the error won't go away. I've searched StackOverflow for help as well, and none of the answers will fix the error. It looks like "adding user to listings" is where I'm hung up at. It hasn't been migrated. Here is the current status: up 20140420045539 Create listings up 20140420202538 Add attachment image to listings up 20140423004722 Devise create users up 20140424233221 Add name to users up 20140501012518 Add user to listings down 20140508213243 Add user id to listings Just wanted to post this, to see if you had any ideas for me. Thanks!

Posted over 5 years ago by Anthony Myers
Posted over 5 years ago by Anthony Myers

Eh, the formatting is going to make that hard for you to see. Basically all the migrations are listed as "UP" except for "Add user to listings". It's listed as "DOWN".

0
Posted over 5 years ago by Alex Yang

Try running 'rake db:migrate' in your command line. Let me know if that works!

If you have other course-related questions in the future, please post them in the Discussion section underneath that specific video. It'll just help me understand where in the course you are so I can troubleshoot faster. Thanks!

0