Skip to content
Ferdinando edited this page Aug 13, 2019 · 1 revision

TradePlus configuration and troubleshooting notes

Static data

The MVP comes with a static dataset. The data is provided by the Species team already formatted for the purposes of this application.

Import

In order to import the data into the system, is sufficient to run the following rake task:

bundle exec rake import:trade_plus_static_data['/path/to/file']

If already existing data needs to be replaced/updated all the records within the trade_plus_static table need to be destroyed first. From the database console:

TRUNCATE trade_plus_static;