summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20190823000549_add_likes_index_to_objects.exs
blob: 13f3d6e8375ba5b30ff8c0e3699e6ebfe52d4e4a (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