On Sep 30, 2:39 pm, Denis Haskin <[EMAIL PROTECTED]> wrote:
> The behavior of rake db:migrate:down is a little bit unexpected (to me
> at least).
>
> If I do this:
> $ rake db:version
> Current version: 20080930121212
> $ rake db:migrate:down VERSION=20080930121212
>
> what happens is the schema in that migration is rolled back, but the
> migration version is NOT removed from schema_migrations table.

$ rake --describe db:migrate:down
rake db:migrate:down
    Runs the "down" for a given migration VERSION.


> Am I missing something obvious here?  I would have expected
> db:migrate:down to also remove that version from schema_migrations.
>

You probably want just "db:migrate" with a specific version:

$ rake db:migrate VERSION=20080930121212



--~--~---------~--~----~------------~-------~--~----~
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