README.rdoc in seed_dump-0.2.1 vs README.rdoc in seed_dump-0.2.2
- old
+ new
@@ -22,18 +22,18 @@
$ cat db/seeds.rb
# Autogenerated by the db:seed:dump task
# Do not hesitate to tweak this to your needs
- products = Product.create(
+ products = Product.create([
{ :category_id => 1, :description => "Long Sleeve Shirt", :name => "Long Sleeve Shirt" },
{ :category_id => 3, :description => "Plain White Tee Shirt", :name => "Plain T-Shirt" }
- )
+ ])
- users = User.create(
+ users = User.create([
{ :id => 1, :password => "123456", :username => "test_1" },
{ :id => 2, :password => "234567", :username => "tes2" }
- )
+ ])
Append to db/seeds.rb instead of overwriting it:
rake db:seed:dump APPEND=true