changes to accommodate a delete user modal

This commit is contained in:
Adam Piontek 2021-03-05 15:32:01 -05:00
parent 9651887f34
commit 0039146cd4
13 changed files with 302 additions and 209 deletions

View file

@ -7,7 +7,7 @@ defmodule Bones73k.Repo.Migrations.CreateProperties do
add(:name, :string)
add(:price, :decimal)
add(:description, :text)
add(:user_id, references(:users, type: :binary_id, on_delete: :nothing))
add(:user_id, references(:users, type: :binary_id, on_delete: :delete_all), null: false)
timestamps()
end