Packages

A flexible authentication (and more) solution for Phoenix

Current section

Files

Jump to
haytni priv migrations 0-confirmable_changes.exs
Raw

priv/migrations/0-confirmable_changes.exs

defmodule <%= inspect Module.concat([:Haytni, "Migrations", camelized_scope, "ConfirmableChanges"]) %> do
use Ecto.Migration
def change(table \\ <%= inspect table %>) do
create_if_not_exists table(table) do
# NOP
end
alter table(table) do
add :confirmed_at, :utc_datetime, default: nil
end
end
end