Re: rake db:migrate does nothing

Ambrose
Sun, 08 Jul 2007 23:54:08 -0000

Well I cannot see any environment variable listed that would seem to
cause this.

However I am delighted to say that:

$>rake db:migrate VERSION=5

does indeed bypass the problem. I''ll run with that for now as I plan
to move to a Mac soon and that should be the end of the problem I
hope.

Huge thanks for everyone''s help :-)

Cheers

Ambrose

On Jul 8, 4:06 pm, Mark Coleman
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> Ambrose wrote:
> > Hi Mark
>
> > I can absolutely confirm that I cannot get rake db:migrate to apply
> > more than 3 migrations. It runs with no errors but will only apply the
> > first 3 migrations on every new project I try. So something is clearly
> > preventing more than 3 migrations.
>
> > Where would I find this environment variable? I''ve looked in
> > environment.rb and development.rb and database.yml
>
> Depending on your shell environment, you can do something like
>
> $>echo $VERSION
>
> to see if the environment is set - it''s not a ruby environment
variable,
> it would be a shell environment variable that is read when the rake
> command is invoked. If this is the problem, doing
>
> $>rake db:migrate VERSION=5
>
> should bypass the problem. On a PC, environment variables are set
> somewhere like Control Panel>System>Advanced>Environment Variables
and
> might have been added by anything you have installed on your PC. On Mac
> and *nix, a variable might be being exported from somewhere else.
>
> HTH
>
> --
> Posted viahttp://www.ruby-forum.com/.