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.

    """
    print("Running migrations online")

    project_path = get_project_path()
    project_config = get_project_config(project_path)

    backend = get_backend(project_path,project_config,initialize_db = False)

    context.configure(
        connection=backend.connection,
        target_metadata=backend.metadata,
    )

    with context.begin_transaction():
        context.run_migrations()
Run migrations in 'online' mode.

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