I am using Sequel with SQLite and want like to create the database from Ruby code if the SQLite database file does not exist yet. I could use the File class to look for the file but I am wondering if there is something in Sequel to handle this for me?
At first I was creating all the tables each run of the program using create_table?
that only creates a table if it does not already exist. This worked fine until I needed a join table. There is no create_join_table?
that only creates a join table if it does not exist.
Any suggestions for handling database creation in the application?