i suggest you invest some time reading AWDR, or any of the other quite good Rails tutorial-type books
"rake db:migrate"
i suggest you invest some time reading AWDR, or any of the other quite good Rails tutorial-type books
"rake db:migrate"
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?