update constraint on Elixir