Transactional Migrations Plugin
Listen to this article
I wrote a while ago on utilising transactional DDL in your ruby on rails migration scripts so I decided to create a plugin.
In a nutshell:
Transactional Migrations is a plugin that ensures your migration scripts—bothupanddown—run within a transaction. When used in conjunction with a database that supports transactional Data Definition Language (DDL)—such as PostgreSQL—this ensures that if any statement within your migration script fails, the entire script is rolled-back.
Comments
About fricken' time ;-) Thanks.
Posted by: Ted | August 14, 2006 11:39 PM
Truly the smart way to be doing this, I think. Transactions are the way to go. :) - ben @ http://rubyonrailsblog.com/
Posted by: Benjamin | August 16, 2006 09:05 PM
Freaking COOL! This is just what i need. Migrations are a pain when they fail half way and you have to 'roll back' manually
Posted by: Corban Brook | September 14, 2006 06:57 AM