Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

If I make database changes locally, and then use postgres with heroku, what does pushing the database actually do? Update schema, data, or both? There is no information on what actually happens when you push a database using the heroku toolbelt. I have a live production app that I don't want to overwrite data, but I have new unrelated tables and stuff that needs to be uploaded. Is there a good way to do this?

share|improve this question

2 Answers

It turns out you can run rake commands on your remote database like this:

heroku run rake db:migrate
share|improve this answer

Just connect to your database from the command line:

heroku pg:psql
share|improve this answer
This doesn't do what I was asking about. – rncrtr Jul 3 at 16:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.