changes to accommodate a delete user modal
This commit is contained in:
parent
9651887f34
commit
0039146cd4
13 changed files with 302 additions and 209 deletions
priv/repo/migrations
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue