// RollbackTo undoes migrations up to the given migration that matches the `migrationID`.
// Migration with the matching `migrationID` is not rolled back.
RollbackTo undoes migrations up to the given migration that matches the `migrationID`.
Migration with the matching `migrationID` is not rolled back.
// RollbackTo undoes migrations up to the given migration that matches the ` migrationID ` . // Migration with the matching ` migrationID ` is not rolled back .
func (m *Migrator) RollbackTo(migrationID string) error {
	gm := gormigrate.New(m.api.PostgreDatabase, gormigrate.DefaultOptions, migrations)
	if err := gm.RollbackTo(migrationID); err != nil {
		return err
	}
	return nil
}
func ( m * Migrator ) RollbackTo ( migrationID string ) error { gm := gormigrate . New ( m . api . PostgreDatabase , gormigrate . DefaultOptions , migrations ) if err := gm . RollbackTo ( migrationID ) ; err != nil { return err } return nil }
RollbackTo undoes migrations up to the given migration that matches the `migrationID`.
RollbackTo undoes migrations up to the given migration that matches the ` migrationID ` .