Do not make Goal.site not nullable just yet

pull/2833/head
Adam Rutkowski 4 years ago
parent 1248388b8f
commit a79ad186b9

@ -18,9 +18,5 @@ defmodule :"Elixir.Plausible.Repo.Migrations.Associate-goals-with-sites" do
SELECT s.id FROM sites s WHERE s.domain = g.domain
)
"""
alter table(:goals) do
modify :site_id, references(:sites, on_delete: :delete_all), null: false
end
end
end

Loading…
Cancel
Save