Sha256: f6cd11cd281b944a30ce860f27cc525fc277f68e090d1d2cea6fef57371df880
Contents?: true
Size: 645 Bytes
Versions: 3
Compression:
Stored size: 645 Bytes
Contents
namespace :db do namespace :mongoid do namespace :voteable do desc 'Update up_votes_count, down_votes_count, votes_count and votes_point' task :remake_stats => :environment do Mongoid::Voteable::Stats.remake(:log) end desc 'Set counters and point to 0 for uninitizized voteable objects' task :init_stats => :environment do Mongoid::Voteable::Stats.init(:log) end desc 'Migrate vote data created by version < 0.6.0 to new vote data storage' task :migrate_old_votes => :environment do Mongoid::Voteable.migrate_old_votes(:log) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems