rethinkdb

2016-09-09T10:13:27.000039Z

@apa512 thank you for https://github.com/apa512/clj-rethinkdb-migrations

apa512 2016-09-09T10:54:10.000041Z

sure thing, hope you found it useful. i should probably write a line or two of docs and publish it to clojars.

2016-09-09T10:58:47.000042Z

that would be great

2016-09-09T10:58:58.000043Z

i just noticed something

2016-09-09T10:59:35.000044Z

should we be waiting for the table being created in ensure-migration-schema?

2016-09-09T10:59:42.000045Z

e.g.

2016-09-09T10:59:46.000046Z

(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)))))

apa512 2016-09-09T20:41:22.000049Z

seems like a good idea