Phoenix v1.3.0-rc.0 Mix.Phoenix.Schema

Summary

Functions

Parses the attrs as received by generators

Returns the string value of the default schema param

Generates some sample params based on the parsed attributes

Fetches the unique attributes from attrs

Functions

attrs(attrs)

Parses the attrs as received by generators.

default_param(schema, action)

Returns the string value of the default schema param.

new(schema_name, schema_plural, cli_attrs, opts)
params(attrs, action \\ :create)

Generates some sample params based on the parsed attributes.

uniques(attrs)

Fetches the unique attributes from attrs.

valid?(schema)
valid_types()