How can you call terminal calls from within Ruby?
Can i run \"rake db:migrate VERSION=....\" from within my Rails program?
This should give you the info you need: http://blog.jayfields.com/2006/06/ruby-kernel-system-exec-and-x.html