devel #161
1 changed files with 3 additions and 1 deletions
|
@ -16,6 +16,7 @@ defmodule Chiya.Site.Setting do
|
||||||
belongs_to :home_channel, Chiya.Channels.Channel
|
belongs_to :home_channel, Chiya.Channels.Channel
|
||||||
belongs_to :default_channel, Chiya.Channels.Channel
|
belongs_to :default_channel, Chiya.Channels.Channel
|
||||||
belongs_to :micropub_channel, Chiya.Channels.Channel
|
belongs_to :micropub_channel, Chiya.Channels.Channel
|
||||||
|
belongs_to :wiki_channel, Chiya.Channels.Channel
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
|
@ -32,7 +33,8 @@ defmodule Chiya.Site.Setting do
|
||||||
:custom_html,
|
:custom_html,
|
||||||
:home_channel_id,
|
:home_channel_id,
|
||||||
:default_channel_id,
|
:default_channel_id,
|
||||||
:micropub_channel_id
|
:micropub_channel_id,
|
||||||
|
:wiki_channel_id
|
||||||
])
|
])
|
||||||
|> validate_required([:title, :subtitle, :theme, :user_agent])
|
|> validate_required([:title, :subtitle, :theme, :user_agent])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue