diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2018-12-06 20:06:50 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2018-12-06 20:06:50 +0300 |
commit | 7b194873895f510b3e31b00643b4570ba04cb728 (patch) | |
tree | 0a5c022a394e66ad23663b74e447e84d37059c56 /priv | |
parent | ccf0b46dd6a0390a06847b4a1c3eedc8d8e6c916 (diff) | |
download | pleroma-7b194873895f510b3e31b00643b4570ba04cb728.tar.gz pleroma-7b194873895f510b3e31b00643b4570ba04cb728.zip |
[#394] Added `users.tags` and admin routes to tag and untag users. Added tests.
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20181206125616_add_tags_to_users.exs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/priv/repo/migrations/20181206125616_add_tags_to_users.exs b/priv/repo/migrations/20181206125616_add_tags_to_users.exs new file mode 100644 index 000000000..1502f63b6 --- /dev/null +++ b/priv/repo/migrations/20181206125616_add_tags_to_users.exs @@ -0,0 +1,11 @@ +defmodule Pleroma.Repo.Migrations.AddTagsToUsers do + use Ecto.Migration + + def change do + alter table(:users) do + add :tags, {:array, :string} + end + + create index(:users, [:tags], using: :gin) + end +end |