0
0
Fork 0

add more posts to the seed

This commit is contained in:
Gibheer 2011-07-15 19:17:48 +02:00
parent 3468f01ee6
commit 1787b4aa8d
1 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,14 @@ storm = Account.new(
)
storm.save
(1..50).each do |i|
gib.posts.new(:title => "post #{i}", :content => "content of post #{i}",
:released => true).save
end
(1..50).each do |i|
storm.posts.new(:title => "post #{i}", :content => "content of post #{i}",
:released => true).save
end
storm.posts.new(:title => 'bar', :content => 'this is my post!').save
gib.posts.new(:title => 'foo', :content => 'this is mine!', :released => true).save
gib.posts.new(:title => 'lala', :content => 'lorem ipsum in the round about').save