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 schema "articles" do
field :content, InternalTree field :content, InternalTree
field :date, :utc_datetime field :date, :utc_datetime
field :language, :string field :language, :string, default: "EN"
field :title, :string field :title, :string
field :url, :string field :url, :string
belongs_to :author, Author belongs_to :author, Author

View File

@ -9,7 +9,7 @@ defmodule Outlook.Translations.Translation do
schema "translations" do schema "translations" do
field :content, TranslationUnitsMap field :content, TranslationUnitsMap
field :date, :utc_datetime field :date, :utc_datetime
field :lang, :string field :lang, :string, default: "DE"
field :public, :boolean, default: false field :public, :boolean, default: false
field :teaser, :string field :teaser, :string
field :title, :string field :title, :string