Sha256: 3c4fb01d3dea00a1ed67a65d8be185cc80c95b5fa2dcad1c43244e1ba0730b16

Contents?: true

Size: 664 Bytes

Versions: 6

Compression:

Stored size: 664 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::Tasks.remake_stats(:log)
      end
      
      desc 'Set counters and point to 0 for uninitizized voteable objects'
      task :init_stats => :environment do
        Mongoid::Voteable::Tasks.init_stats(:log)
      end
      
      desc 'Migrate vote data created by version < 0.7.0 to new vote data storage'
      task :migrate_old_votes => :environment do
        Mongoid::Voteable::Tasks.migrate_old_votes(:log)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voteable_mongoid-0.7.6 lib/voteable_mongoid/railties/database.rake
voteable_mongoid-0.7.5 lib/voteable_mongoid/railties/database.rake
voteable_mongoid-0.7.4 lib/voteable_mongoid/railties/database.rake
voteable_mongoid-0.7.3 lib/voteable_mongoid/railties/database.rake
voteable_mongoid-0.7.2 lib/voteable_mongoid/railties/database.rake
voteable_mongoid-0.7.1 lib/voteable_mongoid/railties/database.rake