Permalink
Browse files

Added the reset migration command, closes #6.

  • Loading branch information...
1 parent 3f1eb0c commit 5a8e1e91cfba69fc4a1bf5790abc1bc6587ad03b @budu budu committed Aug 29, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/lobos/core.clj
View
@@ -209,6 +209,10 @@
:else args)]
(mig/do-migrations db-spec sname :down names)))
+(defcommand reset [& args]
+ (apply rollback args)
+ (migrate))
+
(defcommand generate-migration [name & [msg]]
(let [name (symbol (if (string? name)
name

0 comments on commit 5a8e1e9

Please sign in to comment.