Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

unset old votes data: u, d, uc, dc, c, p

  • Loading branch information...
commit 0d563d29743f6fe55395fe32cd71dea63e2b34b5 1 parent 33a1988
@tiendung tiendung authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/voteable_mongoid/voteable/tasks.rb
View
8 lib/voteable_mongoid/voteable/tasks.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.