From e31f6a7c362ffe45a67ffc5b7cf0a15c12f2e65c Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Fri, 20 Dec 2019 16:21:11 +1300 Subject: [PATCH] Index into ES after migration --- db/migrate/20191209202348_add_harvest_count_to_crop.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/db/migrate/20191209202348_add_harvest_count_to_crop.rb b/db/migrate/20191209202348_add_harvest_count_to_crop.rb index a54779a7b..e250b4be6 100644 --- a/db/migrate/20191209202348_add_harvest_count_to_crop.rb +++ b/db/migrate/20191209202348_add_harvest_count_to_crop.rb @@ -13,6 +13,11 @@ class AddHarvestCountToCrop < ActiveRecord::Migration[5.2] reversible do |dir| dir.up { data } end + + Crop.reindex + Planting.reindex + Seed.reindex + Harvest.reindex end def data