Skip to content

Instantly share code, notes, and snippets.

@noelworden
Created June 8, 2020 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noelworden/f4fab240b18de3d58873facd196d013f to your computer and use it in GitHub Desktop.
Save noelworden/f4fab240b18de3d58873facd196d013f to your computer and use it in GitHub Desktop.
Enum.zip(
[:first_field_2, :second_field_2, :third_field_2],
[:first_field, :second_field, :third_field]
)
|> Enum.each(fn {key, value} -> rename(table("raw_nmi_product_detail"), key, to: value) end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment