Skip to content

How to destroy a migration

macourtney edited this page Sep 13, 2010 · 3 revisions

Added for version: 0.4

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

./run.sh script/destroy.clj migration create-messages

Destroy will delete the first file with any migration number and name ‘create_messages’. For example, if the create-messages migration is number 2, then destroy will delete the file named ‘002_create_messages.clj’ in the directory db/migrate

Clone this wiki locally