Change Default Behaviors

Learn how to change the default conventions of Ecto.

Ecto’s migrations follow a number of conventions that have proven to work well over time. In most cases, it’s easiest to follow those conventions. They usually require less code and can reduce ramp-up time for new developers joining the project. It’s always helpful if a new project looks a lot like our last one. Sometimes, though, Ecto’s conventions won’t fit our project and we need to structure things differently. Fortunately, Ecto offers several escape hatches ...