Skip to main content

priv/test_host/migrations/20260526100000_add_outbound_to_messages.exs

defmodule Cairnloop.TestHost.Migrations.AddOutboundToMessages do
  @moduledoc """
  Documents the addition of the `system_outbound` role to the `cairnloop_messages` table.
  In this test host, the `role` column is a string, so no schema change is strictly
  required, but this migration maintains parity with host-app expectations.
  """
  use Ecto.Migration

  def up do
    # No-op in string-based schema, but host apps using native enums would:
    # execute "ALTER TYPE message_role ADD VALUE 'system_outbound'"
    :ok
  end

  def down do
    :ok
  end
end