JewelSeed
JewelSeed migrate seed files. It is efficient, quick, and best seed manager for Rails.
Installation
Add this line to your application's Gemfile:
gem 'jewel_seed'
And then execute:
$ bundle install
After running bundle install
, setup databases for JewelSeed:
$ rake jseed:install
Usage
Basic Usage
Run the JewelSeed generator to add seed file:
$ rails g jseed InitUser
Then edit generated seed file, and migrate:
$ rake jseed:migrate
Dump seeds & Load seeds
Create db/seeds/*.rb
files:
$ rake jseed:dump
And load seed files in db/seeds/*.rb
:
$ rake jseed:load
Rollback
Rollback seed data:
$ rake jseed:rollback
Contributing
- Fork it
- 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 new Pull Request