Skip to content
This repository has been archived by the owner on Sep 2, 2019. It is now read-only.

migrate and upgrade rake task dont seem to do anything #19

Open
gucki opened this issue Jul 19, 2011 · 1 comment
Open

migrate and upgrade rake task dont seem to do anything #19

gucki opened this issue Jul 19, 2011 · 1 comment

Comments

@gucki
Copy link

gucki commented Jul 19, 2011

I added an :index => true to a property after already adding some records. Using Person.all(:name => 'test') does then return nothing, I guess because a key lookup is used but then key has not been set before. So I tried running the rake tasks automigrate and autouprade but both dont seem to do anything (according to redis monitor).

So I wonder how to add/ remove an index to existing records? :)

@whoahbot
Copy link
Owner

Hi @gucki!

Currently, there isn't any functionality in dm-redis to update indexes based on schema changes, so there isn't currently a way to add an index to an existing record automatically.

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

No branches or pull requests

2 participants