Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sinsoku/jewel_seed
https://github.com/sinsoku/jewel_seed
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sinsoku/jewel_seed
- Owner: sinsoku
- License: mit
- Created: 2014-06-16T17:31:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-18T10:36:01.000Z (over 10 years ago)
- Last Synced: 2024-04-23T23:15:04.093Z (9 months ago)
- Language: Ruby
- Size: 188 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# JewelSeed
[![Gem Version](https://badge.fury.io/rb/jewel_seed.svg)](http://badge.fury.io/rb/jewel_seed)
[![Build Status](https://travis-ci.org/sinsoku/jewel_seed.svg?branch=master)](https://travis-ci.org/sinsoku/jewel_seed)JewelSeed migrate seed files. It is efficient, quick, and best seed manager for Rails.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'jewel_seed'
```And then execute:
```bash
$ bundle install
```After running `bundle install`, setup databases for JewelSeed:
```bash
$ rake jseed:install
```## Usage
### Basic Usage
Run the JewelSeed generator to add seed file:
```bash
$ rails g jseed InitUser
```Then edit generated seed file, and migrate:
```bash
$ rake jseed:migrate
```### Dump seeds & Load seeds
Create `db/seeds/*.rb` files:
```bash
$ rake jseed:dump
```And load seed files in `db/seeds/*.rb`:
```bash
$ rake jseed:load
```### Rollback
Rollback seed data:
```
$ rake jseed:rollback
```## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request