S
S
saniasania2015-02-26 01:03:45
Ruby on Rails
saniasania, 2015-02-26 01:03:45

What happens after heroku run rake --trace db:migrate VERSION=20150207160609 ????

What will happen after

heroku run rake --trace db:migrate VERSION=20081118092504
????
Is the database synchronized with the local one (the data on the server will not be lost, but new ones will be added) or will the data on the remote server be lost?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Vsk, 2015-02-26
@viktorvsk

The database is synchronized with the local one (data on the server will not be lost, but new ones will be added)

Not
Not
What will happen after
The command will be executed on the server
With the trace keys - a detailed log
AND the VERSION environment variable set to 20081118092504 (an old project, however)
What will happen after that? In general, migrations [should] not affect data. Just apply (run the code in the change/up method) migration with version 20081118092504.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question