Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Note that ecto now has a :source option on schema fields which allows you to map a third party db into your own field naming scheme. Very useful.


Ooooooooooooh! That's killer! I was quite annoyed by the ugly legacy table's column names polluting the new codebase.

I'm looking around for this and I'm not sure that I've found the right information here. Does this apply on a per-field basis?


It has not been merged yet, but several people are using it in production. Here's the PR:

https://github.com/elixir-ecto/ecto/pull/1998




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: