combine.fm/test/initdb.js
2018-04-30 22:20:01 +01:00

11 lines
246 B
JavaScript

import co from 'co';
import models from '../models';
import debugname from 'debug';
const debug = debugname('match.audio:db');
co(async function sync() {
debug('Syncing schema');
await models.sequelize.sync();
debug('Schema synced');
});