17 lines
353 B
Elixir
17 lines
353 B
Elixir
defmodule Sukaato.Repo.Migrations.CreateFolios do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:folios) do
|
|
add :resume, :map
|
|
add :showcase, :map
|
|
add :theme_uri, :string
|
|
add :user_id, references(:users, on_delete: :nothing)
|
|
|
|
timestamps(type: :utc_datetime)
|
|
end
|
|
|
|
create index(:folios, [:user_id])
|
|
end
|
|
end
|