Current section

Files

Jump to
guard lib doorman repo migrations 20171001000000_add_pin.ex
Raw

lib/doorman/repo/migrations/20171001000000_add_pin.ex

defmodule Doorman.Repo.Migrations.AddPin do
use Ecto.Migration
def users_table() do
Application.get_env(:doorman, :users_table, :users)
end
def change do
alter table(users_table()) do
add :pin, :string
add :pin_timestamp, :utc_datetime
end
end
end