public void Save(IMongoDatabase db, IDatabaseMigration migration)
 {
     GetMigrationsCollection(db).InsertOne(new MigrationHistory
     {
         MigrationId = migration.GetType().ToString(),
         Version     = migration.Version
     });
 }
 public void Remove(IMongoDatabase db, IDatabaseMigration migration)
 {
     GetMigrationsCollection(db).DeleteOne(Builders <MigrationHistory> .Filter.Eq(mh => mh.MigrationId, migration.GetType().ToString()));
 }