AUTOGEN: Performances.

This commit is contained in:
codevictory
2021-03-30 22:50:21 +03:00
parent adacd91591
commit 1ae7c26b5a
12 changed files with 450 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
defmodule Runosaari.Repo.Migrations.CreatePerformances do
use Ecto.Migration
def change do
create table(:performances) do
add :time, :naive_datetime
add :description, :string
add :notes, :string
add :location_id, references(:locations, on_delete: :nothing)
add :performer_id, references(:performers, on_delete: :nothing)
timestamps()
end
create index(:performances, [:location_id])
create index(:performances, [:performer_id])
end
end