mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
Add rake task to rebuild paper index
This commit is contained in:
parent
10de75f6f3
commit
0a702a18be
1 changed files with 6 additions and 0 deletions
6
lib/tasks/index.rake
Normal file
6
lib/tasks/index.rake
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
namespace :index do
|
||||||
|
desc 'Rebuild elasticsearch index for Paper model'
|
||||||
|
task rebuild: :environment do
|
||||||
|
Paper.reset_index!
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue