I want to deploy from a new branch I have created. On this branch, the db/migrate content has changed, I removed some migration files and regenerated a new one.
The problem is, when I cap staging deploy
from this branch, it fails when running migrations PG::DuplicateTable: ERROR: relation "partners" already exists
.
I want to run rake db:drop
and rake db:setup
on the server(no real data), but first I need to have an updated content in my app_name/current/db/migrate
folder.
How can I accomplish this?
I ended up disabling
require 'capistrano/rails/migrations'
from my Capfile and ranrake db:drop rake db:setup
from the server.