2018-12-06 17:06:50 +00:00
|
|
|
defmodule Pleroma.Repo.Migrations.AddTagsToUsers do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
|
|
|
alter table(:users) do
|
2019-10-08 12:16:39 +00:00
|
|
|
add(:tags, {:array, :string})
|
2018-12-06 17:06:50 +00:00
|
|
|
end
|
|
|
|
|
2019-10-08 12:16:39 +00:00
|
|
|
create_if_not_exists(index(:users, [:tags], using: :gin))
|
2018-12-06 17:06:50 +00:00
|
|
|
end
|
|
|
|
end
|