Then, add a file named script/db_migrate with the following contents:
Now, on the production system, after the WAR file has been deployed, from the root directory of your web app, run the command:
jruby -S ./script/db_migrate
If you're running in 1.9 mode, add --1.9 before the -S. This assumes that you have a jruby executable in your path somewhere on the server. There should be a way to run the JRuby that is bundled in the WAR file, but I have not spent enough time looking in to it to figure out how. Has anyone had success with this?