Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document migrations #104

Open
julianrubisch opened this issue Dec 6, 2022 · 2 comments
Open

Document migrations #104

julianrubisch opened this issue Dec 6, 2022 · 2 comments

Comments

@julianrubisch
Copy link
Contributor

I'm currently writing up a blog post that includes a cursory introduction to Kredis.

In that process I've noticed that the included migration capability is yet undocumented.

As I haven't used it myself yet, I'm not the ideal person to write it up, but I thought I'd make a note of it here for good measure. If anyone could provide me with usage examples, I'd happily set up a doc PR.

@gcimmino
Copy link

In my mind migrations should update something like data structure but trying this methods it came out that Kredis::Migration.migrate_all and Kredis::Migration.migrate just copy passed keys. Kredis::Migration.delete_all deletes all passed keys as expected.
You can see some usage example in migration_test.rb but sincerely i don't know if the purpose of migrate* methods was just to copy keys because in migration_test.rb should be tested also the presence of original keys.

@dhh
Copy link
Member

dhh commented Dec 27, 2023

If anyone wants to turn this into a PR, please proceed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants