Tidy up migration generation code a bit

- make `pad/1` start its pipeline with a raw value
This commit is contained in:
Martin Frost 2016-01-10 12:47:32 +01:00
parent 8a40849e7c
commit 151b74348c
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ defmodule Mix.Tasks.Isn.Gen.Migration do
"#{y}#{pad(m)}#{pad(d)}#{pad(hh)}#{pad(mm)}#{pad(ss)}"
end
defp pad(s), do: to_string(s) |> String.rjust(2, ?0)
defp pad(s), do: s |> to_string() |> String.rjust(2, ?0)
embed_template :migration, """
defmodule <%= inspect @mod %> do