title: Execute db:migrate and db:setup rake tasks inside a controller using jruby and warble
body: <p>I'm creating an app that must allow the non-programmer end user to install the application by himself.</p>
  
  <p>I already handled the ruby env + web server + database installation part. Now I have to be able to setup the database for the app. I'm thinking about running <strong>rake db:setup</strong> inside a InstallationController (which will be only accessible during the installation process).</p>
  
  <p>Is it possible? How can I do that? </p>
  
  <p>I'm planning to use Warble and JRuby, so I won't be able to do it by using the command-line inside my app.</p>