mirror of
https://github.com/sloanelybutsurely/typeid-elixir.git
synced 2025-06-21 00:22:54 -04:00
![]() Thr reaason for this is that Ecto seems to be handling options differently when the custom type is used for a `belongs_to` field. For example if `belongs_to :thing, Thing, type: TypeID` is specified, the value for `type` will be `TypeIO`, which makes the opts valdiation fail. Using another name for `type`, makes it possible to both set `type` (The Ecto type of the field) and `column_type` (The column type in the database)`. |
||
---|---|---|
.. | ||
type_id | ||
type_id.ex |