Skip to content

How to generate a migration

macourtney edited this page Sep 13, 2010 · 3 revisions

Added for version: 0.4
Updated for version: 0.7

To generate a migration called ‘create-messages’ use:

lein conjure generate migration create-messages

Generate will calculate the next migration version number and append it to the beginning of the name you pass to it, then save the file in the db/migrate directory.

If the next migration number is 1 then the migration file name for create-messages is 001_create_messages.clj

Clone this wiki locally