analytics/priv/repo/migrations/20200106090739_cascade_google_auth_deletion.exs

12 lines
297 B
Elixir
Raw Normal View History

2020-01-06 12:08:36 +03:00
defmodule Plausible.Repo.Migrations.CascadeGoogleAuthDeletion do
use Ecto.Migration
def change do
drop constraint("google_auth", "google_auth_site_id_fkey")
alter table(:google_auth) do
modify :site_id, references(:sites, on_delete: :delete_all), null: false
end
end
end