Duct module that automatically fill in ragtime migrations configuration based on folder with migrations files.
It won't work if you have already applied migrations that was specified manually because during migrations load ragtime will assign ids for migrations using default mechanism - your migrations might have different ids already.
To add this module to your configuration, add the :duct-migrations-auto-cfg/module
configuration before :duct.module/sql
:
{:duct-migrations-auto-cfg/module {}
:duct.module/sql {:database-url "jdbc:sqlite:"}}
It will fill in migrations from migrations
or resources/migrations
folder
Or
{:duct.core/project-ns my-project
:duct-migrations-auto-cfg/module {}
:duct.module/sql {:database-url "jdbc:sqlite:"}}
It will fill in migrations from my-project/migrations
or resources/my-project/migrations
folder
Or you can specify custom path
{:duct-migrations-auto-cfg/module {:migrations-path "my_custom_path"}
:duct.module/sql {:database-url "jdbc:sqlite:"}}
It will fill in migrations from your custom path
Copyright © 2018 Mariusz Jachimowicz
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.