About the rake migrate problem

in the db/migrate directory ,there are five files(001–005),so i think
the top version should be 5,right?

but,the problem is :

when i run the "rake migrate"command,it always migrate to VERSION
2(NOT 5).And my schema.rb file also be modified to version 2.so
strange.
when i run “rake migrate version=5” command which i take the
argument,then it succed to version 5.

how can explain the problem?

thanks

On 5 Mar 2008, at 14:17, Vincent.Z wrote:

argument,then it succed to version 5.

I’ve seen this bevore if you have an environment variable called
version.

Fred

thanks a lot.

fixed,i dont know the version variable stay for what.

On 3ÔÂ5ÈÕ, ÏÂÎç10ʱ54·Ö, Frederick C. [email protected]