Hello, Let me say as a precursor that I am an eternal newbie, so please pardon my ignorance. I did briefly look around in the forums to see if this topic had already been covered, but could not find it. I would be quite willing to have someone point me to the proper place if it has already been covered. My query is this : I was wondering if there is any way to create a set of migrations for an existing database -- to generate a basic migration from all of the tables (or even one at a time) in the database. My situation is : I am creating a new web interface for an existing ( pre-Rails :) ) database, but would like to be able to recreate the table structure (no data necessary) in a test environment. Is there an elegant, established way of doing this? Thanks for your time. /Brad. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Try out rake db:schema:dump On Jan 23, 2008 11:48 AM, bhus <bdhuskins-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hello, > > Let me say as a precursor that I am an eternal newbie, so please > pardon my ignorance. I did briefly look around in the forums to see if > this topic had already been covered, but could not find it. I would be > quite willing to have someone point me to the proper place if it has > already been covered. > > My query is this : I was wondering if there is any way to create a set > of migrations for an existing database -- to generate a basic > migration from all of the tables (or even one at a time) in the > database. My situation is : I am creating a new web interface for an > existing ( pre-Rails :) ) database, but would like to be able to > recreate the table structure (no data necessary) in a test > environment. Is there an elegant, established way of doing this? > > Thanks for your time. > > /Brad. > > >-- Ryan Bigg http://www.frozenplague.net Feel free to add me to MSN and/or GTalk as this email. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
gracias On Jan 22, 8:23 pm, "Ryan Bigg" <radarliste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Try out rake db:schema:dump > > On Jan 23, 2008 11:48 AM, bhus <bdhusk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > Hello, > > > Let me say as a precursor that I am an eternal newbie, so please > > pardon my ignorance. I did briefly look around in the forums to see if > > this topic had already been covered, but could not find it. I would be > > quite willing to have someone point me to the proper place if it has > > already been covered. > > > My query is this : I was wondering if there is any way to create a set > > of migrations for an existing database -- to generate a basic > > migration from all of the tables (or even one at a time) in the > > database. My situation is : I am creating a new web interface for an > > existing ( pre-Rails :) ) database, but would like to be able to > > recreate the table structure (no data necessary) in a test > > environment. Is there an elegant, established way of doing this? > > > Thanks for your time. > > > /Brad. > > -- > Ryan Bigghttp://www.frozenplague.net > Feel free to add me to MSN and/or GTalk as this email.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---