Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

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
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
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.
Reply all
Reply to author
Forward
0 new messages