Cannot migrate back

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:

[email protected]:~/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
[email protected]:~/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

On Mar 21, 8:40 pm, Luma [email protected] 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:

[email protected]:~/project/src$ rake db:migrate version=0 --trace

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

Fred

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…

On Mar 21, 9:01 pm, Phlip [email protected] 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

thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs