# Migration Rollbacks

**URL:** <https://www.ruby-forum.com/t/migration-rollbacks/84835>\
**Category:** Rails\
**Created:** [March 21, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/migration-rollbacks/84835 "2006-03-21T19:07:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@johnk](https://www.ruby-forum.com/u/johnk)\
**Post date:** [March 21, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/migration-rollbacks/84835/1 "2006-03-21T19:07:31Z")

</div>

Another question about migrations.

When I type:

# =========== rake migration VERSION=1

The value in the schema table change to ‘1’ but none of the down  
commands are issued to drop the respective tables. Am I doing  
something wrong here?

Thanks 🙂

John K.

---

<div class="post-metadata">

**Author:** ![johnk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@johnk](https://www.ruby-forum.com/u/johnk)\
**Post date:** [March 21, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/migration-rollbacks/84835/2 "2006-03-21T19:47:36Z")

</div>

On 3/21/06, John K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> something wrong here?  
> Are the drop statements in your migration files for version 2+? If  
> they’re in your 001 file, then you need to use VERSION=0.

– James

---

<div class="post-metadata">

**Author:** ![johnk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@johnk](https://www.ruby-forum.com/u/johnk)\
**Post date:** [March 21, 2006, 7:50pm UTC](https://www.ruby-forum.com/t/migration-rollbacks/84835/3 "2006-03-21T19:50:48Z")

</div>

rake migrate VERSION=1

notice it’s ‘migrate’, not ‘migration’

---

<div class="post-metadata">

**Author:** ![johnk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@johnk](https://www.ruby-forum.com/u/johnk)\
**Post date:** [March 21, 2006, 8:21pm UTC](https://www.ruby-forum.com/t/migration-rollbacks/84835/4 "2006-03-21T20:21:29Z")

</div>

For some reason it is working now. Maybe it was related to my  
previous problem. Thanks.

On 21-Mar-06, at 1:47 PM, James L. wrote:

> > commands are issued to drop the respective tables. Am I doing  
> > something wrong here?
> 
> Are the drop statements in your migration files for version 2+? If  
> they’re in your 001 file, then you need to use VERSION=0.
> 
> – James
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

John K.
