Skip to content

Commit

Permalink
spread out book seeds (so they have different time stamps)
Browse files Browse the repository at this point in the history
  • Loading branch information
pitr committed Nov 30, 2010
1 parent 1e6e64d commit 06ae83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@

user = User.create(:email => 'pitr.vern@gmail.com', :password => 'testtest')

400.times {|i| user.books.create(:author => 'Some Author', :title => i.to_s) }
400.times {|i| user.books.create(:author => 'Some Author', :title => i.to_s, :created_at => (Time.now + i.minutes)) }

0 comments on commit 06ae83b

Please sign in to comment.