openfoodnetwork
https://github.com/openfoodfoundation/openfoodnetwork
Ruby
Connect suppliers, distributors and consumers to trade local produce.
RepopulateInventories#up
Previous version of this migration (20160218235221) relied on Permissions#variant_override_producers which was then changed, meaning that an incomplete set of variants were added to inventories of most hubs Re-running this now will ensure that all permitted variants (including those allowed by 20160224034034) are added to the relevant inventories
Edit
git clone [email protected]:openfoodfoundation/openfoodnetwork.git
cd openfoodnetwork
open db/migrate/20160302044850_repopulate_inventories.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RepopulateInventories-up-for-pr
# Commit to gitgit add db/migrate/20160302044850_repopulate_inventories.rbgit commit -m "better docs for RepopulateInventories#up"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-RepopulateInventories-up-for-pr
hub pull-request
# Celebrate!