Custom Column Names in Phoenix Models

When working with the Phoenix framework, you need to create your data models and plug in your database schema to your app. If you are not starting your project from the scratch, there is a high probability that you want your data models to adhere to an existing database schema with unconventional column names. So without any further ado, let’s see how we can introduce custom column names in Ecto.
For this example, I am assuming that you have already set up your Phoenix app. If you haven’t yet, go through the awesome documentation of Phoenix Framework and create your app.

Link: https://dzone.com/articles/custom-column-names-in-phoenixnbspmodels?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev