add tracking saved to db

This commit is contained in:
2021-09-14 17:24:08 +02:00
parent 1af37846bd
commit 42e025af12
6 changed files with 36 additions and 19 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ defmodule PokemonCouture.Accounts.User do
field :password, :string, virtual: true
field :hashed_password, :string
field :confirmed_at, :naive_datetime
many_to_many :clothes, PokemonCouture.Shops.Clothes, join_through: "ownerships", unique: :true
many_to_many :clothes, PokemonCouture.Shops.Clothes, join_through: "ownerships", unique: :true, on_replace: :delete
timestamps()
end