mix attached.gen.migration (Attached v0.1.1)

Copy Markdown View Source

Generates an Ecto migration for an attached field on a schema.

$ mix attached.gen.migration MyApp.Accounts.User avatar

Adds an avatar_attached_original_id column to the schema's table (respects config :attached, default_foreign_key_suffix: "_original_id").