protected function migrated($className)
    {
        $classInfo = new ReflectionClass($className);
        $fileName  = str_replace('.php', '', basename($classInfo->getFileName()));

        $result = $this->connection->createQueryBuilder()->select('version')
            ->from('schema_migrations')
            ->where('version = ?')
            ->setParameter(0, $fileName)
            ->execute();

        if (!count($result->fetchAll())) {
            return $fileName;
        } else {
            return false;
        }
    }