def run_migrations_online():
connectable = settings.engine<EOL>with connectable.connect() as connection:<EOL><INDENT>context.configure(<EOL>connection=connection,<EOL>transaction_per_migration=True,<EOL>target_metadata=target_metadata,<EOL>compare_type=COMPARE_TYPE,<EOL>)<EOL>with context.begin_transaction():<EOL><INDENT>context.run_migrations()<EOL><DEDENT><DEDENT>
Run migrations in 'online' mode.

    In this scenario we need to create an Engine
    and associate a connection with the context.