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.Shops.Clothes do
field :game, :string
field :location, :string
many_to_many :users, PokemonCouture.Accounts.User, join_through: "ownerships", unique: :true
many_to_many :users, PokemonCouture.Accounts.User, join_through: "ownerships", unique: :true, on_replace: :delete
timestamps()
end