migrations: add is_moderator index for users table

This commit is contained in:
William Pitcock 2018-09-03 11:55:12 +00:00
parent 3370fab1d0
commit cf5d1302aa

View file

@ -0,0 +1,7 @@
defmodule Pleroma.Repo.Migrations.UsersAddIsModeratorIndex do
use Ecto.Migration
def change do
create index(:users, ["(info->'is_moderator')"], name: :users_is_moderator_index, using: :gin)
end
end