Elixir - increment a field value in Ecto map

You could also specify the offset as a parameter…

|> Enum.with_index(1)