View Source Elph.Migration (elph v0.9.1)
This module provides macros to help you with creating easier migrations for your custom content types.
After creating your schema (and its migration) via
mix phx.gen.schema Contents.Types.Markdown markdown_contents markdown:text
- Add
use Elph.Migration
belowuse Ecto.Migration
- In the
create table
call addadd_content_field()
and remove thetimestamps()
.