code: func IsMigrated(cfg abcconfig.DBConfig) (bool, int64, error) {
  	files, err := ioutil.ReadDir(filepath.Join("db", "migrations"))
  	if err != nil || len(files) == 0 {
  		return false, 0, ErrNoMigrations
  	}
  
  	connStr, err := GetConnStr(cfg)
  	if err != nil {
  		return false, 0, err
  	}
  
  	version, err := mig.Version(cfg.DB, connStr)
  	if err != nil {
  		return false, version, err
  	}
  
  	return isLatestVersion(version, files), version, nil
  }
docs: // IsMigrated returns true if the database is migrated to the
  // latest migration in the db/migrations folder. It also
  // returns the current database migration version number.