Surprised nobody mentioned:
rake db:migrate:redo VERSION=<xxx>

It lets you redo a single migration, don't forget to dump the table
and then reload it if you want to keep the data.

Brendon.

On May 20, 3:28 pm, Mk 27 <[email protected]> wrote:
> Frederick Cheung wrote:
> > rake tasks are arbitrary ruby code. in theory you could have a rake
> > task that launched a missile at the moon. The tasks that rails
> > provides in the db: namespace do just fiddle with the database (or
> > related files like schema.rb)
>
> > Fred
>
> Thanks all!
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to