lein repl
(use 'lobos.core 'lobos.connectivity 'lobos.config 'lobos.migration 'lobos.migrations)
(binding [*src-directory* "src/clj/"] (migrate))
(binding [*src-directory* "src/clj/"] (rollback))
(binding [*src-directory* "src/clj/"] (reset :all)) ;; Resets all migrations (cleans the db)
lein repl
(use 'korma.db 'korma.core 'recipes.db.schema 'recipes.db.core)
(select recipes (with ingredients))
id (auto inc)
name
instructions
avatar_url
ingredients (has many)
created (Date now)
id (auto inc)
name
units
quantity
recipe_id (belongs to recipe)
created (Date now)