Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

15 рядки
416B

  1. defmodule Pleroma.Repo.Migrations.CreateBookmarks do
  2. use Ecto.Migration
  3. def change do
  4. create_if_not_exists table(:bookmarks) do
  5. add(:user_id, references(:users, type: :uuid, on_delete: :delete_all))
  6. add(:activity_id, references(:activities, type: :uuid, on_delete: :delete_all))
  7. timestamps()
  8. end
  9. create_if_not_exists(unique_index(:bookmarks, [:user_id, :activity_id]))
  10. end
  11. end