def morphs(self, name, index_name=None):
        self.unsigned_integer('%s_id' % name)
        self.string('%s_type' % name)
        self.index(['%s_id' % name, '%s_type' % name], index_name)
Add the proper columns for a polymorphic table.
dataset/ETHPy150Open sdispater/orator/orator/schema/blueprint.py/Blueprint.morphs