Commit e055340e by Ibrahim Awwal

Add "migration" to add field anonymous_to_peers.

parent 3d17a81a
...@@ -228,6 +228,10 @@ namespace :db do ...@@ -228,6 +228,10 @@ namespace :db do
CommentThread.create_elasticsearch_index CommentThread.create_elasticsearch_index
Tire.index('comment_threads') { import CommentThread.all } Tire.index('comment_threads') { import CommentThread.all }
end end
task :add_anonymous_to_peers => :environment do
Content.collection.find(:anonymous_to_peers=>nil).update_all({"$set" => {'anonymous_to_peers' => false}})
end
end end
namespace :jobs do namespace :jobs do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment