analytics/priv/repo/migrations/20201210085345_add_email_verified_to_users.exs
Uku Taht aa7ae87811
Onboarding UX improvements (#441)
* WIP

* Actually activate the user

* Send email verification codes

* Send activation code with email

* Only show onboarding steps during first site creation

* Add worker to config

* Consistent form styles

* Send welcome email when user activates account

* Add changelog entry

* Use https in new site form

* Correct spelling in email
2020-12-15 11:30:45 +02:00

15 lines
306 B
Elixir

defmodule Plausible.Repo.Migrations.AddEmailVerifiedToUsers do
use Ecto.Migration
use Plausible.Repo
def change do
alter table(:users) do
add :email_verified, :boolean, null: false, default: false
end
flush()
Repo.update_all("users", [set: [email_verified: true]])
end
end