ActiveRecord :: PendingMigrationError?

I cannot find a solution for this, but here is a screenshot of the error.

This is what the error looks like when going to the localhost page: 3000

+6
source share
4 answers

Stop your server at the command prompt and run this:

bundle exec rake db:migrate

It looks like you wrote the migration, but have not yet migrated your database.

+18
source

Perhaps you are in the wrong directory? I started the rails server from the wrong folder when I received this error.

+1
source

Launch Console:

bundle exec rake db: migrate

0
source

prepare the transfer for the test using this command.

 rake test:prepare 

Now it should work.

0
source

All Articles