Hi how to migrate in between versions ? suppose if i have version 1-76 . if i want to revert from 57-65 then what should i do ?without affecting data of migrations from 66-76.Please help Sijo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi how to migrate in between versions ? suppose if i have version 1-76 . if i want to revert from 57-65 then what should i do ?without affecting data of migrations from 66-76.Please help Sijo -- View this message in context: http://www.nabble.com/migration-between-versions-tp15329100p15329100.html Sent from the RubyOnRails Users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
''rake db:migrate VERSION=x'' (where ''x'' is the migration number) On Feb 7, 6:16 am, Sijo Kg <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi > > how to migrate in between versions ? > suppose if i have version 1-76 . > > if i want to revert from 57-65 then what should i do ?without affecting > data of migrations from 66-76.Please help > > Sijo > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Is it correct?Because rake db:migrate VERSION=57(mycase) will drop all tables from 76-58..So my data in 66-76 will be lost.That is not neede.I have to preserve data of 66-76 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I''m not sure if it is possible to do what you want using rake. Generally speaking in the development environment, while data loss can be inconvenient the data is rarely considered to be crucial - the critical data is what is used in the production environment. If you really do have to save what you have in the tables that would be lost, you can backup the data from the database and then restore it once rake recreates the empty tables. The method to do this depends on which database platform you are using, with MySQL for example you would use mysqldump. Gareth ----- Gareth Howells, CertHE (Dunelm), BCS CEO, GForce Industries garethATgforce-industriesDOTcoDOTuk 07862725134 GForce Industries 86, Warwick Avenue, Quorn, Loughborough, LEICS. LE12 8HE ----- Original Message ----- From: "Sijo Kg" <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> To: <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Sent: Thursday, February 07, 2008 9:35 AM Subject: [Rails] Re: migration between versions> > Is it correct?Because rake db:migrate VERSION=57(mycase) will drop all > tables from 76-58..So my data in 66-76 will be lost.That is not neede.I > have to preserve data of 66-76 > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---