Hi, So I''ve been an idiot. I haven''t been using db migrations up until now. I want to start using them. What steps do I have to take to make sure everything is hunky dory and my existing data won''t be deleted. What I''m thinking of doing is making sure that all the migrations for the models exist and are correct currently and set the schema_info to 20 (The number of models I have now.). I will then start using the migrations. How do I make sure that the schema_info.rb in myapp/db is current and accurate? TIA, -John --~--~---------~--~----~------------~-------~--~----~ 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 don''t know the solution to your problem, but you might want to check out rake db:schema:dump Good luck. On 11/30/06, John Oxley <john-JA4dDRuU84dWk0Htik3J/w@public.gmane.org> wrote:> > > Hi, > > So I''ve been an idiot. I haven''t been using db migrations up until now. > I want to start using them. What steps do I have to take to make sure > everything is hunky dory and my existing data won''t be deleted. > > What I''m thinking of doing is making sure that all the migrations for > the models exist and are correct currently and set the schema_info to 20 > (The number of models I have now.). I will then start using the > migrations. > > How do I make sure that the schema_info.rb in myapp/db is current and > accurate? > > TIA, > > -John > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
The Rails Recipes book has a good recipe for setting up migrations for older Rails apps. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---