def upgrade(migrate_engine):
    meta = MetaData(bind=migrate_engine)
users = Table('users', meta, autoload=True)
users.c.user_id.alter(name='id')

def downgrade(migrate_engine):
    meta = MetaData(bind=migrate_engine)
users = Table('users', meta, autoload=True)
How to write alter column name migrations with sqlalchemy-migrate?