frenzy/priv/repo/migrations/20210908133238_creat_item_u...

8 lines
186 B
Elixir

defmodule Frenzy.Repo.Migrations.CreatItemUniqueIndex do
use Ecto.Migration
def change do
create unique_index(:items, [:feed_id, :guid], name: :items_feed_guid_index)
end
end