Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-01-15 12:17:34 +01:00
parent 8b4d1ab4e4
commit 32bd50d161
2 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
defmodule Eventos.Repo.Migrations.CreateEventsTags do
use Ecto.Migration
def change do
create table(:events_tags, primary_key: false) do
add :event_id, references(:events)
add :tag_id, references(:tags)
end
end
end