Here xandra is a child process for the Your Application Supervisor, So you can start the Xandra before migration, by writing this line start_apps_before_migration: [:my_app] in your Repo configuration. This means you are starting your application before migration. Your config.exs may look like -
config :my_app, MyApp.Repo,
username: .....,
password: .....,
database: "my_app_db,
hostname: "localhost",
pool_size: 10,
start_apps_before_migration: [:my_app]


















