Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

304 B
Raw Blame
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