analytics/priv/repo/migrations/20200320100803_add_setup_emails.exs
Uku Taht ee92ed5213
Email flows (#46)
* Update activation email

* Update trial upgrade emails

* Remove feedback emails

* Remove feedback email test

* Update welcome email (and send it earlier)

* Site setup emails

* Add create site emails for trialers

* Add check stats email

* Remove dead code

* Adjust site setup emails for users who are not on trial

* BCC myself on all new emails

* Use old phrasing in the welcome email
2020-03-23 11:34:25 +02:00

16 lines
430 B
Elixir

defmodule Plausible.Repo.Migrations.AddSetupEmails do
use Ecto.Migration
def change do
create table(:setup_help_emails) do
add :site_id, references(:sites), null: false, on_delete: :delete_all
add :timestamp, :naive_datetime
end
create table(:setup_success_emails) do
add :site_id, references(:sites), null: false, on_delete: :delete_all
add :timestamp, :naive_datetime
end
end
end