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

9 lines
283 B
Elixir
Raw Normal View History

2019-09-28 22:30:55 +00:00
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