rake db:migrate:redo
I can run rake db:migrate via Tools - Run Rake Task. However, when I select a specific version from the drop down list in the tool, it still runs rake for the most recent version: i.e. rake db:migrate instead of rake db:migrate:redo VERSION=XXXXXXXXXXXX.
Am I missing something? I am assuming that the drop list of existing migrations is there so one can rerun a previous migration.
RubyMine version 7.1.4
Thanks!
Please sign in to leave a comment.
Bump... this problem also exists under 8.0
Hello Jage,
excuse me for the delay. I've tried to run rake task db:migrate:redo specifying the migration in RubyMine 144.3600, and it used the migration I'd set. What is the output in your console after running this command?
the confusion in my case was that I was trying to enter the parameters (like VERSION=XXXXXXXX) in the first window that appears, but that is only a search window... I wouldn't have thought to just type db:migrate:redo & press enter (as I would be afraid of immediate execute of that command, but that is not the case)
Steps to redo a migration:
I see 3 paths to better usability:
Enter task name or its part:
you could add additional text like:
Enter task name or its part (Arguments entered in next step):
@Mstillman, we've implemented a new feature Run Anything, probably it'll meet your needs, please take a look:
https://blog.jetbrains.com/ruby/2018/01/rubymine-2018-1-eap1-is-open/