Last active
October 17, 2016 20:15
-
-
Save lasseebert/46e7c3957b074fd959891d44be7e1fbd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule MyApp.Repo.Migrations.AddUsersTable do | |
| use Ecto.Migration | |
| def change do | |
| create table(:users) do | |
| add :email, :string | |
| timestamps | |
| end | |
| create index(:users, [:email]) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good. :)))