David A. Black
2008-Apr-22 15:07 UTC
[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! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---