add defaults for channel
This commit is contained in:
parent
ca5c0ca1dd
commit
aaa525267e
1 changed files with 4 additions and 2 deletions
|
@ -14,14 +14,16 @@ defmodule Chiya.Channels.Channel do
|
|||
:public,
|
||||
:private,
|
||||
:unlisted
|
||||
]
|
||||
],
|
||||
default: :private
|
||||
|
||||
field :layout, Ecto.Enum,
|
||||
values: [
|
||||
:default,
|
||||
:microblog,
|
||||
:gallery
|
||||
]
|
||||
],
|
||||
default: :default
|
||||
|
||||
many_to_many :notes, Chiya.Notes.Note,
|
||||
join_through: "channels_notes",
|
||||
|
|
Loading…
Reference in a new issue