I am using a vagrant box as a development machine for a project with an odd dependency I can only seem to install on ubuntu.
I created my database and have my app co
As an alternative to Matt's solution, you can also use private networks your Vagrantfile.
If you add a line such as:
config.vm.network "private_network", ip: "192.168.42.10"
Vagrant will add a second adapter to the virtual machine and hook it up to host-only adapter on that subnet.
This way you can then let database.yml simply point to 192.168.42.1 all the time (in this example).