private void MigrateDatabase()
{
//Run migrations to keep the db up-to-date.
//Currently migration files will be run multiple times and errors are
//swallowed by AR, need to clean this up
string migrationsFolder = Server.MapPath("/Migrations");
string[] migrationFiles = Directory.GetFiles(migrationsFolder, "*.sql");
foreach (var migrationFile in migrationFiles)
{
ActiveRecordStarter.CreateSchemaFromFile(migrationFile);
}
}