building5 / sails-db-migrate

db-migrate integration for sails.js
MIT License
61 stars 32 forks source link

Add db:seed task for fill db by data #22

Closed Seafnox closed 8 years ago

Seafnox commented 8 years ago

In addition to updating the table schema, you need to fill them with data. For this there must be a separate grunt task. In the task, you can specify the source file that will contain code to generate the data (by use modules which the developer wants)

leedm777 commented 8 years ago

A good idea, but the underlying db-migrate seeder functionality doesn't distinguish between seeds and migrations.

This feels like something that would be its own sails-db-seed module. I don't have a need for one, so I don't think I'll write one anytime soon.

If you write one I will be glad to link to it from the sails-db-migrate README.

Thanks for the feedback!