-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to use custom Ecto type for item_id
#235
Comments
mayel
changed the title
How to use custom Ecto Type for
How to use custom Ecto type for Aug 31, 2024
item_id
item_id
21 tasks
Hi @mayel , I've never come across this issue before. What kind of error do you get? Perhaps we can simulate the scenario in a test and then create a solution/PR for this edge case scenario. |
mayel
added a commit
to bonfire-networks/paper_trail
that referenced
this issue
Sep 13, 2024
Here's a basic reproduction which results in the following compilation error: https://github.com/bonfire-networks/paper_trail/tree/custom-type-repro/example
|
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Hi, thanks for merging my recent PR :)
It's great that we can configure the type of ID used for
item_id
, but an issue for us is that it doesn't seem to work for types that aren't built-in to Ecto (such asNeedle.ULID
from https://www.hex.pm/packages/needle_ulid). What would be a good approach to make this possible (without simply adding such libraries as an optional dependency)?The text was updated successfully, but these errors were encountered: