pleroma/priv/repo/migrations/20190522084924_add_object_index_on_name.exs
2019-05-22 11:56:53 +03:00

8 lines
194 B
Elixir

defmodule Pleroma.Repo.Migrations.AddObjectIndexOnName do
use Ecto.Migration
def change do
create(index(:objects, ["(data->'name')"], name: :objects_name_index, using: :gin))
end
end