# Capistrano rollback\_with\_migrations

**URL:** <https://www.ruby-forum.com/t/capistrano-rollback-with-migrations/107771>\
**Category:** Rails\
**Created:** [June 26, 2007, 2:10am UTC](https://www.ruby-forum.com/t/capistrano-rollback-with-migrations/107771 "2007-06-26T02:10:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snacktime](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Post date:** [June 26, 2007, 2:10am UTC](https://www.ruby-forum.com/t/capistrano-rollback-with-migrations/107771/1 "2007-06-26T02:10:04Z")

</div>

Is there a reason why there is no built in task  
rollback\_with\_migrations in capistrano? Before I go look at the  
source and try overriding that method, I thought there might be a good  
reason why it’s not there that I haven’t though of.

Anyone know?

Chris

---

<div class="post-metadata">

**Author:** ![snacktime](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Post date:** [June 26, 2007, 2:23am UTC](https://www.ruby-forum.com/t/capistrano-rollback-with-migrations/107771/2 "2007-06-26T02:23:05Z")

</div>

On 25-Jun-07, at 8:08 PM, snacktime wrote:

> Is there a reason why there is no built in task  
> rollback\_with\_migrations in capistrano? Before I go look at the  
> source and try overriding that method, I thought there might be a good  
> reason why it’s not there that I haven’t though of.
> 
> Anyone know?
> 
> Chris

In my experience DDL isn’t generally under transaction control, so  
there isn’t really a safe way to rollback; ie you don’t know how much  
or little was successful.

Although I understand that postgres has support for transactions  
around DDL.

Cheers,  
Jodi  
General Partner  
The nNovation Group inc.  
www.nnovation.ca/blog
