Ecto migrations: is it possible to pass a variable value

Using the triple double-quotes syntax you already use makes it simple.

Just replace the hardcoded value with a string interpolation like so: #{users}, for example. Of course, the variable users must exist before that expression gets evaluated.