require('mongoose');
// eslint-disable-next-line no-unused-vars
const { info, error } = require('../src/logger');

const { connect, close } = require('../src/utils/database');

require('../src/services/homework/model');

module.exports = {
	up: async function up() {
		await connect();
		// ////////////////////////////////////////////////////
		// Make changes to the database here.
		// Hint: Access models via this('modelName'), not an imported model to have
		// access to the correct database connection. Otherwise Mongoose calls never return.
		info('update homework indexes...');
		this('homework').syncIndexes();
		info('updated homework indexes successfully');

		info('update submission indexes...');
		this('submission').syncIndexes();
		info('updated submission indexes successfully');

		info('update courses indexes...');
		this('courses').syncIndexes();
		info('updated courses indexes successfully');
		// ////////////////////////////////////////////////////
		await close();
	},
};

@@ -212,16 +212,85 @@
 model');
+%0Aconst %7B courseModel %7D = require('../src/services/user-group/model');
 %0A%0Amodule
@@ -647,24 +647,30 @@
 xes...');%0A%09%09
+await 
 this('homewo
@@ -681,32 +681,32 @@
 .syncIndexes();%0A
-
 %09%09info('updated 
@@ -777,24 +777,30 @@
 xes...');%0A%09%09
+await 
 this('submis
@@ -916,23 +916,25 @@
 ;%0A%09%09
-this('
+await 
 course
-s')
+Model
 .syn

fix migration