clacks/priv/repo/migrations/20190928220200_create_ap_id...

9 lines
283 B
Elixir

defmodule Clacks.Repo.Migrations.CreateApIdIndexes do
use Ecto.Migration
def change do
create unique_index(:activities, ["(data->>'id')"], name: :activites_unique_ap_id_index)
create unique_index(:objects, ["(data->>'id')"], name: :objects_unique_ap_id_index)
end
end