homeman-elixir/priv/repo/migrations/20240122054053_create_tasks.exs

16 lines
386 B
Elixir
Raw Permalink Normal View History

2024-01-21 23:48:10 -06:00
defmodule Homeman.Repo.Migrations.CreateTasks do
use Ecto.Migration
def change do
create table(:tasks, primary_key: false) do
add :id, :binary_id, primary_key: true
add :description, :string
add :emoji, :string, null: true
add :completed_at, :naive_datetime, null: true
add :phase, :string
timestamps(type: :utc_datetime)
end
end
end