Sha256: 87e935605509abbae5678a694b07b9a9e81f39a81d68bf4257feaa48c3110113

Contents?: true

Size: 818 Bytes

Versions: 3

Compression:

Stored size: 818 Bytes

Contents

= 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

Copyright (c) 2010 The Able Few Spencer Markowski. See LICENSE.txt for
further details.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
seedbed-1.1.1 README.rdoc
seedbed-1.1.0 README.rdoc
seedbed-1.0.1 README.rdoc