original_docstring: Run migrations in 'online' mode.
  
      In this scenario we need to create an Engine
      and associate a connection with the context.
  
      
docstring: Run migrations in 'online' mode.
  In this scenario we need to create an Engine
  and associate a connection with the context.
docstring_tokens: Run migrations in ' online ' mode . In this scenario we need to create an Engine and associate a connection with the context .
code: def run_migrations_online():
      """Run migrations in 'online' mode.
  
      In this scenario we need to create an Engine
      and associate a connection with the context.
  
      """
      engine = engine_from_config(settings, prefix='sqlalchemy.')
  
      connection = engine.connect()
      context.configure(
          connection=connection,
          target_metadata=target_metadata
      )
  
      try:
          with context.begin_transaction():
              context.run_migrations()
      finally:
          connection.close()
code_tokens: def run_migrations_online ( ) : engine = engine_from_config ( settings , prefix = 'sqlalchemy.' ) connection = engine . connect ( ) context . configure ( connection = connection , target_metadata = target_metadata ) try : with context . begin_transaction ( ) : context . run_migrations ( ) finally : connection . close ( )
short_docstring: Run migrations in 'online' mode.
short_docstring_tokens: Run migrations in ' online ' mode .
comment: """Run migrations in 'online' mode.
  
      In this scenario we need to create an Engine
      and associate a connection with the context.
  
      """