Merge branch '394_user_tags' into 'develop'
[#394] User tags Closes #394 See merge request pleroma/pleroma!508
This commit is contained in:
commit
94d8f1ab30
10 changed files with 168 additions and 7 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