Mix.Tasks.Phoenix.Gen.Resource

Generates a Phoenix resource.

mix phoenix.gen.resource User users name:string age:integer

The first argument is the module name followed by its plural name (used for resources and schema).

The generated resource will contain:

Namespaced resources

Resources can be namespaced, for such, it is just necessary to namespace the first argument of the generator:

mix phoenix.gen.resource Admin.User users name:string age:integer
Source

Summary

run(arg1)

Callback implementation of Mix.Task.run/1

Functions

run(arg1)

Callback implementation of Mix.Task.run/1.

Source