mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-05 15:11:01 -05:00
9 lines
169 B
Ruby
9 lines
169 B
Ruby
namespace :search do
|
|
desc 'reindex'
|
|
task reindex: :environment do
|
|
Crop.all.each_slice(50) do |batch|
|
|
Crop.searchkick_index.import(batch)
|
|
end
|
|
end
|
|
end
|