Fork me on GitHub
#duct
<
2018-02-01
>
blackawa10:02:07

Does duct/migrator.ragtime execute migration in production profile? It seems ragtime does not work in my application… A part of my config.edn is below:

{;; various other configurations here
 :duct.module/sql {}
 :duct.migrator/ragtime {:migrations [#ig/ref :my.migration/xxx]}
 [:duct.migrator.ragtime/sql :my.migration/xxx]
 {:up [#duct/resource "xxx.up.sql"]
  :down [#duct/resource "xxx.down.sql"]}}
Reading source code of migrator.ragtime, I think migration will be executed when duct.migrator.ragtime/sql component is started, and it appears to be in production configuration map…