Duct module that wraps the configuration for Ragtime migrations. We got a feeling that writing them by hand takes way too much space in config.
Of course there are still some loose ends. For one, it could be more explicit about the ordering of migrations.
First of all the following key has to be added to theconfig.edn
. Take into account that it's a module key, so it should be placed outside the :duct.profile/base key map.
:dev.gethop.module/ragtime-wrapper {}
Then instead of adding :migrations [#ig/ref ... #ig/ref ...]
and a bunch of key definitions just add this to your ragtime config:
:migrations-paths ["myproject/migrations/001-create-initial-schema"
"myproject/migrations/002-do-stuff"]
A complete example:
:duct.migrator/ragtime
{:database #ig/ref :duct.database/sql
:logger #ig/ref :duct/logger
:strategy :raise-error
:migrations-paths ["myproject/migrations/001-create-initial-schema"
"myproject/migrations/002-do-stuff"]}
Copyright (c) HOP Technologies
The source code for the library is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
Can you improve this documentation? These fine people already did:
spietras, Bingen Galartza & Damian HryniewiczEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close