lecutre 07
This commit is contained in:
122 files changed
+9723
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in new issue
Block a user