summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20190823000549_add_likes_index_to_objects.exs
blob: c410dcdc23f4d9f58a7dd26ae968e4d40e38f2c1 (plain)
1
2
3
4
5
6
7
defmodule Pleroma.Repo.Migrations.AddLikesIndexToObjects do
  use Ecto.Migration

  def change do
    create_if_not_exists(index(:objects, ["(data->'likes')"], using: :gin, name: :objects_likes))
  end
end