Skip to content

Commit

Permalink
unset old votes data: u, d, uc, dc, c, p
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendung committed May 2, 2011
1 parent 33a1988 commit 0d563d2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/voteable_mongoid/voteable/tasks.rb
Expand Up @@ -67,7 +67,13 @@ def self.migrate_old_votes_for(klass, voteable)
'down_voter_ids' => true,
'votes_count' => true,
'votes_point' => true,
'voteable' => true
'voteable' => true,
'votes.u' => true,
'votes.d' => true,
'votes.uc' => true,
'votes.dc' => true,
'votes.c' => true,
'votes.p' => true
}
}, { :safe => true })
end
Expand Down

0 comments on commit 0d563d2

Please sign in to comment.