Mix.Tasks.Phoenix.Gen.Ectomodel

Generates an Ecto Model

mix phoenix.gen.ectomodel model_name field_name:field_type

## Command line options

* `--timestamps` - adds inserted_at and updated_at to the model
* `--repo=RepoName` - the repo to generate a migration for (defaults to `YourApp.Repo`)
* `--skip-migration` - do not generate migration

## Examples

mix phoenix.gen.ectomodel user first_name:string age:integer --timestamps

Summary

run(opts)

Callback implementation of Mix.Task.run/1

Functions

run(opts)

Callback implementation of Mix.Task.run/1.