Skip to content

Commit

Permalink
Remove unused unique_constraint from Teams.Membership schema changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
zoldar committed Jan 29, 2025
1 parent 1f5f164 commit b466339
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/plausible/teams/membership.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ defmodule Plausible.Teams.Membership do
|> put_change(:role, role)
|> put_assoc(:team, team)
|> put_assoc(:user, user)
|> unique_constraint(:user_id, name: :one_team_per_user)
end
end

0 comments on commit b466339

Please sign in to comment.