Skip to content

Commit

Permalink
relationship added for example
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Jul 15, 2016
1 parent 9fcdff4 commit 17c7a51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/priv/repo/migrations/20160715113442_create_people.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ defmodule Example.Repo.Migrations.CreatePeople do
add :gender, :boolean
add :birthdate, :date

add :company_id, references(:companies), null: false

timestamps
end

create index(:people, [:company_id])
end
end

0 comments on commit 17c7a51

Please sign in to comment.