2022-04-06 14:55:12 -04:00
|
|
|
defmodule Aggiedit.Repo.Migrations.CreateUploads do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
|
|
|
create table(:uploads) do
|
|
|
|
add :file, :text
|
|
|
|
add :mime, :text
|
|
|
|
add :size, :integer
|
2022-04-06 20:17:27 -04:00
|
|
|
|
|
|
|
add :user_id, references(:users, on_delete: :delete_all)
|
2022-04-06 14:55:12 -04:00
|
|
|
|
|
|
|
timestamps()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|