 (defn cljs-repl []
   (ra/cljs-repl))
 
-(integrant.repl/set-prep! get-config)
+(defn migrate []
+  (migratus/migrate (migratus-config)))
+
+(defn rollback []
+  (migratus/migrate (migratus-config)))
 
 (defn bootstrap []
   (let [db (:db/postgres system)

            [clj-templates.db.db :as db]
            [clj-templates.logger]
            [clojure.java.io :as io]
            [clj-templates.clojars-feed :refer [extract-templates-from-gzip-stream adapt-template-to-db]]))

(defn get-config []
  (merge main-config dev-config))

      (db/upsert-template db (adapt-template-to-db template)))
    :bootstrapped))

(integrant.repl/set-prep! get-config)
