Added unique index to UUID fields
This commit is contained in:
parent
2369cb3f27
commit
8cdd8ddf9e
1 changed files with 8 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
defmodule Pinchflat.Repo.Migrations.AddIndexToUuidFields do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create unique_index(:sources, [:uuid])
|
||||
create unique_index(:media_items, [:uuid])
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue