Add option to modify HTTP pool size
[akkoma] / priv / repo / migrations / 20190413082658_create_bookmarks.exs
1 defmodule Pleroma.Repo.Migrations.CreateBookmarks do
2 use Ecto.Migration
3
4 def change do
5 create_if_not_exists table(:bookmarks) do
6 add(:user_id, references(:users, type: :uuid, on_delete: :delete_all))
7 add(:activity_id, references(:activities, type: :uuid, on_delete: :delete_all))
8
9 timestamps()
10 end
11
12 create_if_not_exists(unique_index(:bookmarks, [:user_id, :activity_id]))
13 end
14 end