Transactional Migrations Plugin
By Simon HarrisI 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
upanddown– 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.