planner/priv/repo/migrations/20200809220758_create_plans.exs
2020-08-23 15:19:10 -07:00

16 lines
381 B
Elixir

defmodule Planner.Repo.Migrations.CreatePlans do
use Ecto.Migration
def change do
create table(:plans, primary_key: false) do
add :id, :binary_id, primary_key: true
add :description, :string
add :finished_at, :naive_datetime
add :start, :naive_datetime
add :end, :naive_datetime
add :name, :string
timestamps()
end
end
end