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

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -