Answer the question
In order to leave comments, you need to log in
How not to create a new table each time when deploying on heroku?
Hello. Let's say I added a new column to the table, deployed it to heroku, you need to do heroku run rake db:migrate. And, as I understand it, it does not add a column (as on a local server), but re-creates the entire table already with changes, which is extremely inconvenient when testing. There is a solution?
Answer the question
In order to leave comments, you need to log in
Didn't understand the problem. db:migrate
works the same on heroku and on your computer, it does not erase the entire data base, as db:reset
if you are talking about it. There shouldn't be any problems with testing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question