analytics/priv/repo/migrations/20210420075623_add_sent_renewal_notifications.exs
Uku Taht 6ca7425dc9
Send renewal notification for annual subscriptions (#949)
* Add background job to send renewal notification

* Use copy from Marko

* Add expiration email in case the user has cancelled

* Add queue config

* Use correct tag for expiration email
2021-04-21 15:57:38 +03:00

11 lines
286 B
Elixir

defmodule Plausible.Repo.Migrations.AddSentRenewalNotifications do
use Ecto.Migration
def change do
create table(:sent_renewal_notifications) do
add :user_id, references(:users), null: false, on_delete: :delete_all
add :timestamp, :naive_datetime
end
end
end