Skip to content

Instantly share code, notes, and snippets.

@shankardevy

shankardevy/create_users.exs Secret

Created Jul 8, 2017
Embed
What would you like to do?
defmodule Mango.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :email, :citext
add :phone, :string
timestamps()
end
create unique_index(:users, [:email])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment