[ANN] add_downs, plugin to help writing 'down' methods

Hi –

I’ve written a little plugin, partly just for fun (though there’s no
reason it couldn’t be useful), called add_downs, which lets you do
this:

rake db:migrate:add_downs

and end up with your migrations with their down methods written
automatically.

The way it works is that it overrides create_table, add_column, etc.,
so that they print out their opposites, and then it executes your up
methods. It doesn’t connect to the database, so it can’t reverse
certain operations involving column type.

Overall it’s mostly for simple-ish cases, but could be handy. You can
find it at: http://www.risleydale.net/svn/plugins/add_downs

David


Rails training from David A. Black and Ruby Power and Light:
INTRO TO RAILS June 9-12 Berlin
ADVANCING WITH RAILS June 16-19 Berlin
INTRO TO RAILS June 24-27 London (Skills Matter)
See http://www.rubypal.com for details and updates!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs