Project

seedbed

0.0
No commit activity in last 3 years
No release in over 3 years
Manage seeds in individual files in db/seeds/
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.5.1
>= 0
 Project Readme

seedbed¶ ↑

Manage groups of seeds.

Installation¶ ↑

gem install seedbed

Usage¶ ↑

Create db/seeds/ directory; Place your seed files in the directory.

In seeds.rb

plant :seed_file_name plant :another_seed_file_name

When rake db:seed is run all seed files invoked by ‘plant’ will be run.

Automatic Rake Tasks¶ ↑

Seedbed automatically generates rake tasks for existing files in the db/seeds directory. For example, if you have the file db/seeds/admin_users.rb the following rake task will be available:

rake db:seed:admin_users

Nested directories are supported and will be used as the namespace in the rake task. For example, the file db/seeds/admin/users.rb would be accessed via:

rake db:seed:admin:users

Copyright © 2010 The Able Few Spencer Markowski. See LICENSE.txt for further details.