ragtime icon indicating copy to clipboard operation
ragtime copied to clipboard

Instructions on Concepts wiki page does not match `ragtime 0.8.1` behavior

Open teodorlu opened this issue 1 year ago • 1 comments

Reading https://github.com/weavejester/ragtime/wiki/Concepts, I see this:

user=> (ragtime/applied-migrations db)
("add-foo")

When I tried running (ragtime/applied-migrations db) in my own project, I got this error:

1. Unhandled clojure.lang.ArityException
   Wrong number of args (1) passed to: ragtime.core/applied-migrations

Reading the ragtime source, I see that ragtime.core/applied-migrations takes two arguments, a store and an index:

(defn applied-migrations
  "List all migrations in the index that are applied to the database."
  [store index]
  (->> (p/applied-migration-ids store)
       (map index)
       (remove nil?)))

teodorlu avatar Feb 11 '24 14:02 teodorlu

Also wanted to say that I'm learning a lot working through a migration setup in my project. I really appreciate Ragtime giving me the core concepts, rather than a pre-packaged migration setup for a specific database. Thanks for making this!

teodorlu avatar Feb 11 '24 14:02 teodorlu