Permalink
Browse files

Updated README and gemspec for release.

  • Loading branch information...
1 parent 33c187f commit 3afdf1fe939eb3fc190705722374a3f149dc1af2 @midas committed Dec 13, 2009
Showing with 15 additions and 4 deletions.
  1. +14 −3 README.rdoc
  2. +1 −1 genesis.gemspec
View
17 README.rdoc
@@ -9,9 +9,9 @@ in Ruby on Rails solution.
This gem is a continuation of my db-seed project (http://github.com/midas/db-seed).
I cannot claim the idea for this plugin or all of the implementation to be entirely mine. I have basically taken the
-db-populate plugin by Josh Knowles and added some functionality outlined at RailsSpikes and then extended it
-with my own ideas. That said, genesis does work more like Rails active record migrations than db-populate or the other
-db seeding tools currently available.
+db-populate plugin by Josh Knowles and added some functionality outlined at RailsSpikes and then extended it with my
+own ideas. That said, genesis does work more like Rails active record migrations than db-populate or the other db
+seeding tools currently available.
== FEATURES
@@ -21,6 +21,9 @@ db seeding tools currently available.
* Seed version task
* Seeding task
* Database mulligan task (runs db:migrate:reset and then seeds)
+* Only run seeds from the all and the current environment folder the task is being
+ executed within (ie. all seeds from db/seeds and db/seeds/production when rake
+ db:genesis RAILS_ENV=production)
== TODO
@@ -51,6 +54,14 @@ Generate a seed file:
script/generate genesis create_users
+This will generate a seed file for you in the db/seeds directory.
+
+Generate a seed file in a specific environment folder:
+
+ script/generate genesis create_users production
+
+This will generate a seed file for you in the db/seeds/production directory.
+
Next, simply populate the self.up and self.down methods of the generated seed file. The seed is a normal Ruby class.
ActiveRecord is extended with the following methods:
View
2 genesis.gemspec
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["C. Jason Harrelson (midas)"]
- s.date = %q{2009-12-12}
+ s.date = %q{2009-12-13}
s.description = %q{A data seeding solution for Ruby on Rails providing seeding facilities far more advanced than the current built in Ruby on Rails solution.}
s.email = %q{jason@lookforwardenterprises.com}
s.extra_rdoc_files = [

0 comments on commit 3afdf1f

Please sign in to comment.