Hi. I''m a Rubynuby and I was wondering if it''s possible to dump the current state of my database (all the rows in different tables) to a form of a migration? I don''t know if I made myself clear enough, so let me elaborate: Me and a few of my friends are working on a project using cvs. I added *lots* of testing data (in the database) and I want all of my coworkers to have the same content of the databases as I do. Is there a way that I can create a migration which transforms an empty database into a database filled with records (not random records, my records ;) ). Oh, and sorry for my English. -- 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 -~----------~----~----~----~------~----~------~--~---
Adam Sosnowski wrote:> Hi. > > I''m a Rubynuby and I was wondering if it''s possible to dump the current > state of my database (all the rows in different tables) to a form of a > migration? > > I don''t know if I made myself clear enough, so let me elaborate: > Me and a few of my friends are working on a project using cvs. I added > *lots* of testing data (in the database) and I want all of my coworkers > to have the same content of the databases as I do. Is there a way that I > can create a migration which transforms an empty database into a > database filled with records (not random records, my records ;) ). > > Oh, and sorry for my English.take a look at http://www.agilewebdevelopment.com/plugins/migration2 -- 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 mean this one http://www.agilewebdevelopment.com/plugins/mysql_tasks opps!!! -- 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 -~----------~----~----~----~------~----~------~--~---
Adam Sosnowski wrote:> > Hi. > > I''m a Rubynuby and I was wondering if it''s possible to dump the current > state of my database (all the rows in different tables) to a form of a > migration? > > I don''t know if I made myself clear enough, so let me elaborate: > Me and a few of my friends are working on a project using cvs. I added > *lots* of testing data (in the database) and I want all of my coworkers > to have the same content of the databases as I do. Is there a way that I > can create a migration which transforms an empty database into a > database filled with records (not random records, my records ;) ). > > Oh, and sorry for my English. >Have a look at http://www.agilewebdevelopment.com/plugins/manage_fixtures , does exactly what you want. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Adam Sosnowski wrote:> Hi. > > I''m a Rubynuby and I was wondering if it''s possible to dump the current > state of my database (all the rows in different tables) to a form of a > migration? > > I don''t know if I made myself clear enough, so let me elaborate: > Me and a few of my friends are working on a project using cvs. I added > *lots* of testing data (in the database) and I want all of my coworkers > to have the same content of the databases as I do. Is there a way that I > can create a migration which transforms an empty database into a > database filled with records (not random records, my records ;) ). > > Oh, and sorry for my English.If you''re trying to share test data you should consider creating fixtures with this information and actually writing automated tests. -- 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 -~----------~----~----~----~------~----~------~--~---