We have seed data that is the minimum data required before our app can be used.
We have seed data that is for running end-to-end tests.
We have seed data that is for a specific customer.
We have seed data that is for demos.
This gem helps apply these different types of seed data in a common way.
Add this line to your application's Gemfile:
gem 'storks', github: 'workplacesystems/storks'
And then execute:
$ bundle
Create dir to place the different flavours of seeds in
$ mkdir ./db/seed_flavours
Write some ruby code to generate the seeds.
$ vi ./db/seed_flavours/special.rb
Apply the the seed data.
$ rake db:seed:with[special]
- Fork it ( https://github.com/[my-github-username]/storks/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request