Files
comp4959/lectures/07/bcit/priv/repo/migrations/20261023192533_create_students.exs
T
2026-10-23 13:43:58 -07:00

17 lines
325 B
Elixir

defmodule Bcit.Repo.Migrations.CreateStudents do
use Ecto.Migration
def change do
create table(:students) do
add :sid, :string
add :firstname, :string
add :lastname, :string
add :gpa, :float
timestamps(type: :utc_datetime)
end
create unique_index(:students, [:sid])
end
end