elixir - How to alter a column name in an Ecto model with a migration? -
does know of (or can provide) example of how alter table column name using ecto dsl
i'm guessing use mix ecto.gen.migration fill in empty created file custom code (if so, how edit column name, docs show modify change column type)
or there command line flag can pass generate migration code me?
you can rename/3
:
rename table(:posts), :title, to: :summary
Comments
Post a Comment