Read the manual for rake, or try this, this will migrate you to version 30
rake db:migrate VERSION=30