N
N
nazgul_942015-07-16 18:27:00
Ruby on Rails
nazgul_94, 2015-07-16 18:27:00

Why is the rake db:migrate command not running?

When executing the rake db:migrate command in the console, the console does not respond to the command in any way (neither with an error message, nor with a success message). It also does not run migrations in the project. The command is not executed even after changing any migrations at all. I've used this command successfully before.218b06e6f8374525b468a5d7a45b97d7.PNG

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Vsk, 2015-07-16
@nazgul_94

If there are no errors, then everything went fine. The absence of text indicates that there is nothing to migrate there.
You can check with
There everything will be UP
Perhaps you are looking in the wrong environments (dev, prod, test)
Maybe you are doing this on the server, or you want to see changes in production, while the default is the dev environment.
Then you gotta try
RAILS_ENV=production bundle exec rake db:migrate

N
nazgul_94, 2015-07-16
@nazgul_94

Apparently you were right that there is nothing to migrate there. By canceling the migration and applying it again, I got the desired result. Thanks for the rake db:migrate:status command, didn't know about it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question