View Full Version : question regarding databases and RoR
04-08-2008, 03:36 AM
Is it possible to allow users to dynamically select the number of columns in a database, and also choose the names? (example user is given choice of a number between 3 and 5 for the number of columns, then asked to name the columns) If so, how would this be done?
05-31-2008, 12:32 AM
If you REALLY need to do this you would write your own sql queries to create the tables with the desired field names, there is nothing built into rails to do this for you.
I would suggest however you look at your database design instead as there are very few situations that require dynamic table creation.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.