[Proposal] :writable option for belongs_to

18 views
Skip to first unread message

Sheharyar Naseer

unread,
Jun 19, 2025, 8:53:59 PMJun 19
to elixir-ecto
Hi all,
I really like the :writable option for field which allows the field to be marked as read-only or disable it from being modified after inserting.

But it doesn't seem like the same option is available on foreign keys defined through belongs_to, which would be very useful for the same reasons as those for having it on field.

If this makes sense, I'm happy to send in a PR.

Thanks.

José Valim

unread,
Jun 19, 2025, 9:14:27 PMJun 19
to elixi...@googlegroups.com
PRs welcome!



--
You received this message because you are subscribed to the Google Groups "elixir-ecto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-ecto...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/elixir-ecto/a2e44d9f-0495-48f0-92d2-ffcf5515c594n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages