

def foreign(self, columns, name=None):
    '\n        Specify an foreign key on the table\n\n        :param columns: The foreign key(s) columns\n        :type columns: str or list\n\n        :param name: The name of the foreign key\n        :type name: str\n\n        :rtype: Fluent\n        '
    return self._index_command('foreign', columns, name)

dataset/ETHPy150Open sdispater/orator/orator/schema/blueprint.py Blueprint.foreign/original