Add categories properly

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-01-15 12:04:09 +01:00
parent 9df9a795c7
commit 8b4d1ab4e4
6 changed files with 23 additions and 13 deletions

View File

@@ -16,6 +16,7 @@ defmodule Eventos.Repo.Migrations.CreateEvents do
add :thumbnail, :string
add :publish_at, :datetimetz
add :organizer_id, references(:accounts, on_delete: :nothing), null: false
add :category_id, references(:categories, on_delete: :nothing), null: false
timestamps()
end