Skip to content

Instantly share code, notes, and snippets.

@arlandism
Created January 13, 2014 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arlandism/8408370 to your computer and use it in GitHub Desktop.
Save arlandism/8408370 to your computer and use it in GitHub Desktop.
When specs run, I get TABLE "foo" not found errors, even after performing the migrations.
def test-db
(map->SqlDatabase
{:classname "org.h2.Driver"
:subprotocol "h2"
:subname "mem:test;DB_CLOSE_DELAY=-1"}))
(defn run-migrations []
(ragtime/migrate-all test-db (ragtime-sql/migrations)))
(korma/defdb memory-db
(korma/h2
{:db "mem:test"
:subprotocol "h2"
:subname "mem:test"}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment