from sqlalchemy import * from migrate import * meta = MetaData() race_enums = (\'asian\',\'mideastern\',\'black\',\'nativeamerican\',\'indian\',\'pacific\',\'hispanic\'
You need pass race_enum as an argument for Enum, not Column
race_enum
Enum
Column
You can either pass in your tuple as whole
tuple
Column('race', Enum('asian','mideastern','black','nativeamerican','indian','pacific','hispanic','white','other'))
or use * to unpack race_enums:
*
race_enums
Column('race', Enum(*race_enums))