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,15 @@
defmodule Confient.Repo.Migrations.CreateStudents do
use Ecto.Migration
def change do
create table(:students) do
add :lastname, :string
add :firstname, :string
add :class_id, references(:classes, on_delete: :delete_all)
timestamps()
end
create unique_index(:students, [:lastname, :firstname, :class_id])
end
end