I want to dynamically create and populate databases on the fly, and I would like to know how you would go about running a migration from with the rails project. I was thinking of doing it either in a model, or shelling out to the command line and running it from there. Any recommendations as to how you would go about accomplishing this? -- 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 -~----------~----~----~----~------~----~------~--~---
gene.tani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-01 05:04 UTC
Re: Run migration from with rails project
On Aug 31, 2:06 pm, John paul Narowski <rails-mailing-l...@andreas- s.net> wrote:> I want to dynamically create and populate databases on the fly, and I > would like to know how you would go about running a migration from with > the rails project. I was thinking of doing it either in a model, or > shelling out to the command line and running it from there. Any > recommendations as to how you would go about accomplishing this? > -- > Posted viahttp://www.ruby-forum.com/.i suggest you invest some time reading AWDR, or any of the other quite good Rails tutorial-type books "rake db:migrate" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> John paul Narowski wrote:>> I want to dynamically create and populate databases on the fly, and I >> would like to know how you would go about running a migration from with >> the rails project. I was thinking of doing it either in a model, or >> shelling out to the command line and running it from there. Any >> recommendations as to how you would go about accomplishing this?> i suggest you invest some time reading AWDR, or any of the other quite > good Rails tutorial-type books > > "rake db:migrate"And don''t do it from "in a model". You are probably not discussing changing the database tables, on the fly, while the program runs. Are you loading the application''s preset data? -- Phlip http://www.oreilly.com/catalog/9780596510657/ "Test Driven Ajax (on Rails)" assert_xpath, assert_javascript, & assert_ajax --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
rein.henrichs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-01 17:29 UTC
Re: Run migration from with rails project
DabbleDB is an example of an application that allows users to "create databases on the fly", but they do not execute migrations from within the application. There are a number of reasons that they don''t -- from security issues to stability issues to performance issues -- and I would definitely advise against it and suggest that you look for an alternate solution, as DabbleDB has done. Rein On Aug 31, 4:06 pm, John paul Narowski <rails-mailing-l...@andreas- s.net> wrote:> I want to dynamically create and populate databases on the fly, and I > would like to know how you would go about running a migration from with > the rails project. I was thinking of doing it either in a model, or > shelling out to the command line and running it from there. Any > recommendations as to how you would go about accomplishing this? > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---