Fork me on GitHub

Are there any plans for allowing clj files as migrations? Similar to rails for example. The clj files could be completely sideeffectful and return nothing, but be tracked through the same hashing-id mechanism. We have complex fixtures/seeds at our company and having programmatic migrations has been on our minds for a while to implement.


This wouldn’t be too hard to implement. You’d just need to write a init-key that returns a record that satisfies the ragtime.protocols/Migration protocol.


Or a collection of records if you wanted.


Oh great, I’ll give that a try; thanks!


and maybe this if you want load migrations from folder rather than describing them one by one