Add rake task to rebuild paper index

This commit is contained in:
Lars Henrik Mai 2016-01-23 20:32:37 +01:00
parent 10de75f6f3
commit 0a702a18be

6
lib/tasks/index.rake Normal file
View file

@ -0,0 +1,6 @@
namespace :index do
desc 'Rebuild elasticsearch index for Paper model'
task rebuild: :environment do
Paper.reset_index!
end
end