Title: Generate self.down in your Rails migrations
Date: March 3, 2006
Timestamp: 1141450680
Author: sjs
Tags: rails, textmate, migrations, rails, textmate
----


  <a href="http://web.archive.org/web/20061101191041/http://sami.samhuri.net/admin/content/edit/35" class="admintools" id="admin_article" style="display: none;">edit</a>
  <h2>Generate self.down in your Rails migrations</h2>
  <p class="auth"><!-- Posted by <a href="mailto:sjs@uvic.ca">Sami Jensen Samhuri</a> -->
  <span class="typo_date" title="Sat, 04 Mar 2006 05:38:00 GMT">on Friday, March 03, 2006</span></p>
  <p><a href="http://web.archive.org/web/20061101191041/http://lunchboxsoftware.com/">Scott</a> wrote a really <a href="http://web.archive.org/web/20061101191041/http://lunchroom.lunchboxsoftware.com/articles/2005/11/29/auto-fill-your-reverse-migrations">cool program</a> that will scan <code>self.up</code> and then consult db/schema.rb to automatically fill in <code>self.down</code> for you. Brilliant!</p>

