Skip to content

Commit

Permalink
Add unique index for item_accesses
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Feb 23, 2024
1 parent 8811269 commit 2623614
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
defmodule Polar.Repo.Migrations.AddUniqueIndexForItemAcceses do
use Ecto.Migration

def change do
create index(:item_accesses, [:item_id, :space_credential_id], unique: true)
end
end

0 comments on commit 2623614

Please sign in to comment.