Sha256: db4a731d331843c60e0dd3a9f214621e9155ffa4e845b1e9190b1d2f36747dc3

Contents?: true

Size: 591 Bytes

Versions: 11

Compression:

Stored size: 591 Bytes

Contents

namespace :mongo do
  namespace :voteable do
    desc 'Update up_votes_count, down_votes_count, votes_count and votes_point'
    task :remake_stats => :environment do
      Mongo::Voteable::Tasks.remake_stats(:log)
    end

    desc 'Set counters and point to 0 for uninitizized voteable objects'
    task :init_stats => :environment do
      Mongo::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
      Mongo::Voteable::Tasks.migrate_old_votes(:log)
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
rs_voteable_mongo-1.3.0 lib/voteable_mongo/railties/database.rake
rs_voteable_mongo-1.2.0 lib/voteable_mongo/railties/database.rake
rs_voteable_mongo-1.1.0 lib/voteable_mongo/railties/database.rake
rs_voteable_mongo-1.0.2 lib/voteable_mongo/railties/database.rake
rs_voteable_mongo-1.0.1 lib/voteable_mongo/railties/database.rake
rs_voteable_mongo-1.0.0 lib/voteable_mongo/railties/database.rake
voteable_mongo-0.9.3 lib/voteable_mongo/railties/database.rake
voteable_mongo-0.9.2 lib/voteable_mongo/railties/database.rake
voteable_mongo-0.9.1 lib/voteable_mongo/railties/database.rake
voteable_mongo-0.9.0 lib/voteable_mongo/railties/database.rake
voteable_mongo-0.8.1 lib/voteable_mongo/railties/database.rake