add default value for note kind
This commit is contained in:
parent
d97be57871
commit
671049b4fc
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ defmodule Chiya.Notes.Note do
|
||||||
@derive {Jason.Encoder, only: [:id, :name, :content, :slug, :channels]}
|
@derive {Jason.Encoder, only: [:id, :name, :content, :slug, :channels]}
|
||||||
schema "notes" do
|
schema "notes" do
|
||||||
field :content, :string
|
field :content, :string
|
||||||
field :kind, Ecto.Enum, values: [:post, :bookmark]
|
field :kind, Ecto.Enum, values: [:post, :bookmark], default: :post
|
||||||
field :name, :string
|
field :name, :string
|
||||||
field :published_at, :naive_datetime
|
field :published_at, :naive_datetime
|
||||||
field :slug, :string
|
field :slug, :string
|
||||||
|
|
Loading…
Reference in a new issue