Capistrano task for rolling back DB migrations to the previous release version. It assumes that the schema.rb is checked in with the correct version into the repository. Reads the version from the schema.rb file and runs the db:migrate with that task
Gemfile gem 'capistrano-db-rollback', '~> 0.1.3'
install gem install capistrano-db-rollback