Add option to modify HTTP pool size
[akkoma] / priv / repo / migrations / 20170911123607_create_notifications.exs
1 defmodule Pleroma.Repo.Migrations.CreateNotifications do
2 use Ecto.Migration
3
4 def change do
5 create_if_not_exists table(:notifications) do
6 add(:user_id, references(:users, on_delete: :delete_all))
7 add(:activity_id, references(:activities, on_delete: :delete_all))
8 add(:seen, :boolean, default: false)
9
10 timestamps()
11 end
12
13 create_if_not_exists(index(:notifications, [:user_id]))
14 end
15 end