Jbays / crypto-calculator

Calculates profitability for crypto assets
0 stars 0 forks source link

migrations seeding data #15

Open Jbays opened 6 years ago

Jbays commented 6 years ago

In coins_index migration file.

After creating the table, the next promise seeds price data from June.

The migration files for both purchases and trades ALSO seed their own respective data.

Is this correct?

The total data inserted during all knex migration is small. ~50 entries.

Should I refactor these migration insertions into seed data?

Jbays commented 6 years ago

This resource looks helpful: https://medium.com/@jaeger.rob/seed-knex-postgresql-database-with-json-data-3677c6e7c9bc