« Hoopla | Main | Foreign Key Associations Plugin »

Transactional Migrations Plugin

Listen to this articleListen 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—both up and down—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.

Truly the smart way to be doing this, I think. Transactions are the way to go. :) - ben @ http://rubyonrailsblog.com/

Freaking COOL! This is just what i need. Migrations are a pain when they fail half way and you have to 'roll back' manually

Post a comment