5c312b8f43ec15868c59b40b2a3e98de20614b48
[akkoma] / repo / migrations / 20170620133028_add_object_activity_index.exs
1 defmodule Pleroma.Repo.Migrations.AddObjectActivityIndex do
2 use Ecto.Migration
3
4 def change do
5 # This was wrong, now a noop
6 # create_if_not_exists index(:objects, ["(data->'object'->>'id')", "(data->>'type')"], name: :activities_create_objects_index)
7 end
8 end