Cannot migrate back


#1

hi,

I can’t run back my migrations on Ubuntu:

rake db:migrate works as expected. I.e. after that, schema_migrations
includes some numbers. Then I run this in ubuntu’s terminal:

user@ubuntu:~/project/src$ rake db:migrate version=0 --trace
(in /home/user/project/src)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
user@ubuntu:~/project/src$

Nothing happened, and schema_migration includes the same numbers as
before.

I have this problem with Rails 2.2.2 on Ubuntu 8.10 in development
mode, but not with Rails 2.0.2 and Windows Vista, also development.

I’m wondering why nobody seems to have the same problem… How can I
get it work?

Luma


#2

On Mar 21, 8:40 pm, Luma removed_email_address@domain.invalid wrote:

hi,

I can’t run back my migrations on Ubuntu:

rake db:migrate works as expected. I.e. after that, schema_migrations
includes some numbers. Then I run this in ubuntu’s terminal:

user@ubuntu:~/project/src$ rake db:migrate version=0 --trace

That should be VERSION=0 - it’s case sensitive (at least in the unix
world)

Fred


#3

That should be VERSION=0 - it’s case sensitive (at least in the unix
world)

It’s case sensitive, because it goes into ENV[‘VERSION’], without
embellishment,
inside Ruby…


#4

On Mar 21, 9:01 pm, Phlip removed_email_address@domain.invalid wrote:

That should be VERSION=0 - it’s case sensitive (at least in the unix
world)

It’s case sensitive, because it goes into ENV[‘VERSION’], without embellishment,
inside Ruby…

ENV isn’t a hash though so ENV[] can do whatever it wants (perhaps if
that was the norm for the platform in question - i don’t know enough
about windows to comment). The ENV_IGNORECASE #define in the ruby
source seems particularly relevant.

Fred


#5

thanks!