[TxMt] Intelligent Migration Snippets

Sami Samhuri sjs at uvic.ca
Thu Feb 23 06:05:19 UTC 2006


Here are 3 macros, 3 commands, and a small Ruby program that take the  
DRY principle to another level while writing Rails migrations.

These snippets for creating a table, adding a column, and renaming a  
column will add the opposite actions into self.down for you. I made a  
30 second demo video so you can see them in action. You'll find all  
this on my blog. The address is in my signature.

Hope some of you find this useful.

-- 
Sami Samhuri
http://sami.samhuri.net




More information about the textmate mailing list