You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2020. It is now read-only.
I am setting up git-deploy to use with a Rails app and I'm looking at rollbacks.
The rollback code resets the working tree to before the last push, then executes either deploy/rollback or deploy/after_push.
If I'm rolling back I want to migrate the database down to where it was, probably using rake db:migrate VERSION=x where the script figures out what x is.
However I can't do this in deploy/rollback because the migration files have already been removed by the git reset --hard.
I can't even do this by hand after rolling back, for the same reason.
Any help would be much appreciated!
The text was updated successfully, but these errors were encountered:
I am setting up git-deploy to use with a Rails app and I'm looking at rollbacks.
The rollback code resets the working tree to before the last push, then executes either
deploy/rollback
ordeploy/after_push
.If I'm rolling back I want to migrate the database down to where it was, probably using
rake db:migrate VERSION=x
where the script figures out whatx
is.However I can't do this in
deploy/rollback
because the migration files have already been removed by thegit reset --hard
.I can't even do this by hand after rolling back, for the same reason.
Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: