Migration and some boilerplate stuff

This commit is contained in:
Karen Konou 2019-02-05 13:35:24 +01:00
commit f4ff4ffba2
4 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,12 @@
defmodule Pleroma.Repo.Migrations.CreateThreadMutes do
use Ecto.Migration
def change do
create table(:thread_mutes) do
add :user_id, references(:users, type: :uuid, on_delete: :delete_all)
add :context, :string
end
create index(:thread_mutes, [:user_id])
end
end