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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 5 Mar 2008, at 14:17, Vincent.Z wrote:> > 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. >I''ve seen this bevore if you have an environment variable called version. Fred> > how can explain the problem? > > thanks > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonr--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
thanks a lot. fixed,i dont know the version variable stay for what. On 3月5日, 下午10时54分, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 5 Mar 2008, at 14:17, Vincent.Z wrote: > > > > > 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. > > I''ve seen this bevore if you have an environment variable called > version. > > Fred > > > > > > > how can explain the problem? > > > thanks > > --~--~---------~--~----~------------~-------~--~----~ > > You received this message because you are subscribed to the Google > > Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > For more options, visit this group athttp://groups.google.com/group/rubyonr- 隐藏被引用文字 - > > - 显示引用的文字 ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---