Initial commit

This commit is contained in:
2020-12-12 18:38:31 +01:00
commit f877b78f33
117 changed files with 23104 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
defmodule Confient.Repo.Migrations.CreateAssignments do
use Ecto.Migration
def change do
create table(:assignments) do
add :title, :string
add :slug, :string
add :due, :date
add :class_id, references(:classes, on_delete: :delete_all)
timestamps()
end
create unique_index(:assignments, [:title, :class_id])
end
end