I cloned one of my own apps using Rails 3.1.3, created an app on Heroku on stack cedar, pushed the to Heroku, and then tried to run
heroku run rake db:migrate
So i had my staging branch already clone and ready for deployment
I added a remote for heroku app
heroku git:remote -a heroku-webapp-name-here
Then i was trying to do something like this: (and wasnt working)
git push heroku staging
Finally running this worked liked a charm:
git push heroku staging:master
The problem is that if you look in the heroku dashboard you will see that the heroku app is not ruby