Could 'default' be added to embeds_one and embed_many?
11 views
Skip to first unread message
Andrew Stewart
unread,
Apr 30, 2024, 10:40:06 PM4/30/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to elixir-ecto
I think 'default' would work well on embedded schemas. you could pass it a struct to set the default state on a new schema. would this change be possible or is there some reason it cant be done?
Onorio Catenacci
unread,
May 1, 2024, 3:43:32 PM5/1/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to elixir-ecto
Would the seeds script be able to handle this case? I can't quite tell what you mean when you say "default state on a new schema". Just a suggestion, of course.