priv/repo/migrations/20260823122040_allow_unlinked_agent_user_links.exs

58e6347eeb72 · 352 B

defmodule OpenAgents.Repo.Migrations.AllowUnlinkedAgentUserLinks do
  use Ecto.Migration

  def change do
    drop constraint(:agent_user_links, :agent_user_links_status_check)

    create constraint(:agent_user_links, :agent_user_links_status_check,
             check: "status IN ('pending', 'linked', 'rejected', 'unlinked')"
           )
  end
end