public function isConstrained()
    {
        $source = $this->definition->sourceContext();
        $target = $this->definition->targetContext();
        if (empty($target)) {
            return false;
        }

        if ($source->getDatabase() != $target->getDatabase()) {
            //Unable to create constrains for records in different databases
            return false;
        }

        return $this->option(Record::CREATE_CONSTRAINT);
    }