Why shouldn’t you use Elixir code in database migrations? (opens in new tab)
From Patryk Bak - a programming blog: Elixir code used in migrations can cause troubles when we decide to start up our system with an empty database. To understand the problem, let’s take the same example as the one used in my previous article entitled “How to migrate live production data”.
Read the original article