mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 02:24:55 +03:00
aa7ae87811
* 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
15 lines
306 B
Elixir
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
|