I am working thorugh RoR: Up and running and i made some code blunders in chapter 3 and so my databases were messed up in mysql. so i deleted the tables in order to re-create them the right way. now i want to run my RoR program again (rake migrate) but nothings happening? how do i get my tables back that Ruby created? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Tom Mornini
2006-Oct-13 05:25 UTC
Re: recreating tables in RoR after deleting them in mysql?
Drop and recreate the DB, or set schema_info table/row to version 0. On Oct 12, 2006, at 10:09 PM, Kyle wrote:> I am working thorugh RoR: Up and running and i made some code blunders > in chapter 3 and so my databases were messed up in mysql. so i deleted > the tables in order to re-create them the right way. > > now i want to run my RoR program again (rake migrate) but nothings > happening? how do i get my tables back that Ruby created? > > > >-- -- Tom Mornini --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
thanks alot. i tried to run rake migrate version=x in terminal but it didnt change anything. this makes sense that i have to manually change the version in the schema. cheers --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---