public function hasMigration()
    {
        $migrations = array_keys($this->getMigrations());
        if (count($migrations)) {
            foreach ($migrations as $version) {
                if (!$this->isMigrated($version)) {
                    return true;
                }
            }
        }

        return false;
    }