Skip to content

How to generate a model

macourtney edited this page Sep 13, 2010 · 3 revisions

Added for version: 0.4
Updated for version: 0.7

To generate a model named ‘message’ use:

lein conjure generate model message

Generate will create the model, a migration, a unit test, and a fixture for message. To add columns to the model, update the migration file.

Clone this wiki locally