Skip to content

Commit

Permalink
added create-migration helper function in user-ns (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
imborge authored and yogthos committed Dec 6, 2017
1 parent 7afc975 commit 96b3320
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/leiningen/new/luminus/core/env/dev/clj/user.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@

(defn rollback []
(migrations/migrate ["rollback"] (select-keys env [:database-url])))

(defn create-migration [name]
(migrations/create name (select-keys env [:database-url])))
<% endif %>

0 comments on commit 96b3320

Please sign in to comment.