Install the ruby-debug-ide gem to the guest:
ruby-debug-ide
gem install ruby-debug-ide
How do I configure the «File» → «Settings» → «Build, Execution, Deployment» → «Deployment» section of my IntelliJ IDEA / RubyMine settings for my VMware Workstation Ubuntu guest?
See also:
bundle exec rake db:migrate