1 defmodule Pleroma.Repo.Migrations.CreateBookmarks 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))
12 create_if_not_exists(unique_index(:bookmarks, [:user_id, :activity_id]))