analytics/priv/repo/migrations/20201210085345_add_email_verified_to_users.exs
Uku Taht 81c12884cd
Add elixir action (#526)
* Add elixir action

* Format the codebase

* Add postgresql

* Postgres config

* Run postgres on localhost

* Add clickhouse to CI
2020-12-29 15:17:27 +02:00

15 lines
304 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