@apa512 thank you for https://github.com/apa512/clj-rethinkdb-migrations
sure thing, hope you found it useful. i should probably write a line or two of docs and publish it to clojars.
that would be great
i just noticed something
should we be waiting for the table being created in ensure-migration-schema
?
e.g.
(defn- ensure-migration-schema
"Ensures the schema to track db migrations"
[conn]
(let [table :migrations]
(when-not (-> (r/table-list)
(r/contains table)
(r/run conn))
(-> (r/table-create table)
(r/run conn))
(-> (r/table table)
(r/wait)
(r/run conn)))))
seems like a good idea