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