pleroma/priv/repo/migrations/20181206125616_add_tags_to_...

12 lines
232 B
Elixir
Raw Normal View History

defmodule Pleroma.Repo.Migrations.AddTagsToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :tags, {:array, :string}
end
2019-07-01 03:08:07 +02:00
create_if_not_exists index(:users, [:tags], using: :gin)
end
end