Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added the reset migration command, closes #6.

  • Loading branch information...
commit 5a8e1e91cfba69fc4a1bf5790abc1bc6587ad03b 1 parent 3f1eb0c
Nicolas Buduroi authored August 28, 2011

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  src/lobos/core.clj
4  src/lobos/core.clj
@@ -209,6 +209,10 @@
209 209
                :else args)]
210 210
     (mig/do-migrations db-spec sname :down names)))
211 211
 
  212
+(defcommand reset [& args]
  213
+  (apply rollback args)
  214
+  (migrate))
  215
+
212 216
 (defcommand generate-migration [name & [msg]]
213 217
   (let [name (symbol (if (string? name)
214 218
                        name

0 notes on commit 5a8e1e9

Please sign in to comment.
Something went wrong with that request. Please try again.