public function migrateToVersion($version, $up = true)
    {
        $this->createIfNotExists();
        $currentVersion = $this->getCurrentVersion();
        if ($up) {
            $this->up($version);
        } else {
            $this->down($version);
        }
    }