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 below use Ecto.Migration
  • In the create table call add add_content_field() and remove the timestamps().

Link to this section Summary

Link to this section Functions

Link to this macro

add_content_field(alter \\ false)

View Source (macro)
Link to this macro

add_media_fields(alter \\ false)

View Source (macro)
Link to this macro

add_or_alter(alter, name, type, keywords)

View Source (macro)