[#394] Added users.tags and admin routes to tag and untag users. Added tests.
This commit is contained in:
parent
ccf0b46dd6
commit
7b19487389
8 changed files with 139 additions and 2 deletions
11
priv/repo/migrations/20181206125616_add_tags_to_users.exs
Normal file
11
priv/repo/migrations/20181206125616_add_tags_to_users.exs
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue