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?
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”
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
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-