Add default values for language in Article and Translation

This commit is contained in:
Thelonius Kort
2023-01-04 15:28:30 +01:00
parent 49b72cbf68
commit b1110beeaf
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ defmodule Outlook.Articles.Article do
schema "articles" do
field :content, InternalTree
field :date, :utc_datetime
field :language, :string
field :language, :string, default: "EN"
field :title, :string
field :url, :string
belongs_to :author, Author