Skip to content

Instantly share code, notes, and snippets.

@skatenerd
Created January 13, 2014 17:35
Show Gist options
  • Save skatenerd/8119cd3c35b78b8a7066 to your computer and use it in GitHub Desktop.
Save skatenerd/8119cd3c35b78b8a7066 to your computer and use it in GitHub Desktop.
please just migraateeeee
project.dev-main=> test-db
; #ragtime.sql.database.SqlDatabase{:connection-uri "jdbc:h2:mem:test_db"}
project.dev-main=> (connection "jdbc:h2:mem:test_db")
; #ragtime.sql.database.SqlDatabase{:connection-uri "jdbc:h2:mem:test_db"}
project.dev-main=> (ragtime.sql.files/migrations)
; #({:id "20140101061122-add-initial-tables", :up #<files$run_sql_fn$fn__10274 ragtime.sql.files$run_sql_fn$fn__10274@487fbdfa>, :down #<files$run_sql_fn$fn__10274 ragtime.sql.files$run_sql_fn$fn__10274@3a918d45>})
project.dev-main=> (ragtime.core/migrate-all test-db (ragtime.sql.files/migrations))
; #IllegalArgumentException db-spec ragtime.sql.database.SqlDatabase@f4ede66b is missing a required parameter clojure.java.jdbc/get-connection (jdbc.clj:199)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment