8 lines
194 B
Elixir
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
|