---
layout: post
title:  "Mix generate Ecto migration"
date:   2016-03-02 08:08:58 -0600
categories: ecto
---
Phoenix/Mix generate Ecto migration

{% highlight elixir %}
mix ecto.gen.migration add_author_to_post
{% endhighlight %}

Documentation: [Mix.Tasks.Ecto.Gen.Migration](https://hexdocs.pm/ecto/Mix.Tasks.Ecto.Gen.Migration.html)

Add mix example generate ecto migration
Add mix example generate ecto migration
