pleroma/priv/repo/migrations/20190522084924_add_object_index_on_name.exs

8 lines
194 B
Elixir
Raw Normal View History

2019-05-22 04:56:53 -04:00
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