protected function assertUniqueIndex($key, $indexes)
    {
        $this->context->assertArrayHasKey($key, $indexes, "The {$this->name} column is not indexed.");
        $this->assertTrue($indexes[$key]->isUnique(), "The {$this->name} is not a unique index.");
    }