I'm making an model that I want to create in relationship to my user model. Following from http://www.phoenixframework.org/v0.13.1/docs/ecto-models#section-data-relationship-and-dependencies used the phoenix.gen.html as follows:
W:runcible>mix phoenix.gen.html Ansible ansibles ansible_name:string ansible_description:text user:belongs_to
But I Get the following when i run it.
Compiled web/models/user.ex
Compiled web/controllers/user_controller.ex
Generated runcible app
** (Mix) Unknown type `belongs_to` given to generator
Any ideas where I've made a mistake?