Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

243 B
Raw Blame
defmodule Plausible.Repo.Migrations.FixupGoalsSitesAssoc do
  use Ecto.Migration

  def change do
    alter table(:goals) do
      modify :site_id, references(:sites, on_delete: :delete_all), null: false
      remove :domain
    end
  end
end