mirror of
https://github.com/plausible/analytics.git
synced 2024-11-27 09:16:25 +03:00
54f70717c4
Co-authored-by: Jerod Santo <jerod@changelog.com>
15 lines
380 B
Elixir
15 lines
380 B
Elixir
defmodule Plausible.Repo.Migrations.AddSpikeNotifications do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:spike_notifications) do
|
|
add :site_id, references(:sites), null: false
|
|
add :threshold, :integer, null: false
|
|
add :last_sent, :naive_datetime
|
|
add :recipients, {:array, :citext}, null: false, default: []
|
|
|
|
timestamps()
|
|
end
|
|
end
|
|
end
|