func (c *Connection) MigrateDown() {
	migrations := &migrate.PackrMigrationSource{
		Box: packr.New("migrations", "./migrations"),
		Dir: ".",
	}
	n, err := migrate.Exec(c.DB.DB, c.dialect, migrations, migrate.Down)
	if err != nil {
		c.logger.Log().Panicf("failed to migrate the database down: %v", err)
	}
	c.logger.WithFields(logrus.Fields{"migrations_number": n}).Info("migrated the database down")
}
MigrateDown undoes the previous migration.
package storage
import (
	"fmt"
	"strings"
	"github.com/gobuffalo/packr/v2"
	"github.com/lib/pq"
	migrate "github.com/rubenv/sql-migrate"
	"github.com/sirupsen/logrus"
	"github.com/volatiletech/sqlboiler/queries"
)
var utilDB = "postgres"
func (c *Connection) MigrateUp() {
	migrations := &migrate.PackrMigrationSource{
		Box: packr.New("migrations", "./migrations"),
		Dir: ".",
	}
	n, err := migrate.Exec(c.DB.DB, c.dialect, migrations, migrate.Up)
	if err != nil {
		c.logger.Log().Panicf("failed to migrate the database up: %v", err)
	}
	c.logger.WithFields(logrus.Fields{"migrations_number": n}).Info("migrated the database up")
}