Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ragtime.core/src/ragtime/core.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns ragtime.core
"Functions and macros for defining and applying migrations."
(:require [ragtime.strategy :as strategy])
(:import java.net.URI))
(:require [ragtime.strategy :as strategy]
[clojure.string :as str]))

(defprotocol Migratable
"Protocol for a database that cab be migrated."
Expand All @@ -16,7 +16,7 @@
"Create a Migratable database connection from a URL. Dispatches on the URL
scheme."
(fn [url]
(.getScheme (URI. url))))
(first (str/split url #":"))))

(defonce defined-migrations (atom {}))

Expand Down