Hi, I have been developing an application but certain tables in my migration are missing table column''s etc... All my fault for editing directly on the database, i know!!!! is there a way to wipe the old migratons and dump all of the table data in one migration to bring it all to the same level? 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 -~----------~----~----~----~------~----~------~--~---
> I have been developing an application but certain tables in my migration > are missing table column''s etc... > > All my fault for editing directly on the database, i know!!!! > > is there a way to wipe the old migratons and dump all of the table data > in one migration to bring it all to the same level?Try one (or more) of these... rake db:schema:dump # Create a db/schema.rb file that can be portably used against any DB supported by AR rake db:structure:dump # Dump the database structure to a SQL file --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---