We are making a Ruby On Rails webapp where every customer gets their own database.
The database needs to be created after they fill out a form on our website.
We have a template database that has all of the tables and columns that we need to copy. How can I do this in programatically from ruby on rails?
From any controller, you can define the following method.
Note that I do not know for sure if this will keep foriegn key integrity. I think it depends a lot on how the template Database is created.