mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-11 17:24:50 -04:00
Index into ES after migration
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user