Back
make-migration* (clj)
(source)multimethod
Dispatcher to create migrations based on filename extension. To add support
for a new migration filename type, add a new defmethod for this.
Examples
migratus
(ns migratus.test.migration.edn
(:require [clojure.java.io :as io]
[clojure.test :refer :all]
[migratus.core :as core]
[migratus.migration.edn :refer :all]
migratus.mock
[migratus.protocols :as proto]
[migratus.utils :as utils])
(:import java.io.File))
(defn edn-mig [content]
(proto/make-migration* :edn 1 "edn-migration" (pr-str content) nil))