def downgrade(): ''' downgrade method ''' if context.get_context().dialect.name not in ['sqlite']: drop_column('rules', 'ignore_availability')