Generates an Ecto schema that uses AncestryEx, and a migration creating
its table.
$ mix ancestry_ex.gen.schema Catalog.Category categories name:string position:integer
The first argument is the schema module (relative to the application
module), followed by the plural name (also used as table name) and the
attributes as name:type.
Supported types: string, text, integer, float, decimal, boolean,
date, time, naive_datetime, utc_datetime, uuid, binary, map
and array:<type>. The type defaults to string.
Options
--orphan-strategy-destroy(default),rootify,adopt,restrictornone.--cache-depth/--virtual-depth- cache the depth in a column or in a PostgreSQL generated column.--counter-cache- keep the number of children inchildren_count.--touch- touch ancestors when a node changes.--format-materialized_path2(default) ormaterialized_path.--column- name of the ancestry column,ancestryby default.--table- the table name, defaults to the plural name.--binary-id- usebinary_id(UUID) primary keys.--no-migration- do not generate the migration.--repoand--migrations-path- seemix ancestry_ex.gen.migration.