In my rails2 app users can upload a sql-dump of a legacy_database (used some funky VBA-macro to dump a MSSQL-db to a text-file)
My problem is: I want to create a new sqlite3 database for each user so I can parse the sql-dump and put it in a empty database. (alongside my main mysql database) Then the users can select the data they want to transfer into the application. I want to keep the legacy database so users can re-import the data.
How do i create a new (blank) .sqlite3 database from within my rails Controller (need to have the 'current_account.id' in the database name) Connecting to it is not the problem.