Skip to content

How to generate a scaffold

macourtney edited this page Sep 13, 2010 · 4 revisions

Added for version: 0.4
Updated for version: 0.7

To generate a scaffold for messages, use:

lein conjure generate scaffold message

To generate a scaffold for message with message containing a single column called text of type string:

lein conjure generate scaffold message text:string

Before starting your server you’ll need to run the migrate script again to update your database to the latest version. Once done, you can run the server, and conjure will automatically pick up your new scaffold.

Valid column types are:

  • integer
  • string (like a varchar)
  • text
  • date
  • time
  • date-time
  • belongs-to (for use with clj-record belongs-to)
Clone this wiki locally