Current section

Files

Jump to
guard lib guard repo migrations 20180131210142_add_mobile.ex
Raw

lib/guard/repo/migrations/20180131210142_add_mobile.ex

defmodule Guard.Repo.Migrations.AddMobile do
use Ecto.Migration
def users_table() do
Application.get_env(:guard, :users_table, :users)
end
def change do
alter table(users_table()) do
add :mobile, :string
add :requested_mobile, :string
end
end
end