Skip to content

Commit

Permalink
Add unique naming to Strore for seed file.
Browse files Browse the repository at this point in the history
  • Loading branch information
thejonanshow committed May 2, 2012
1 parent 68e8f3f commit cf865d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/seeds.rb
@@ -1,6 +1,6 @@
require 'fabrication'

stores = 10.times.map { |n| Fabricate(:store, :name => "Store #{n}", :slug => "store-#{n}") }
stores = 10.times.map { |n| Fabricate(:store, :name => "Seed Store #{n}", :slug => "seed-store-#{n}") }
100.times { Fabricate(:product, :photo => '', :store => Store.all.sample) }
10.times { Fabricate(:category) }

Expand Down Expand Up @@ -46,4 +46,4 @@

stores[4..-1].each do |s|
s.add_admin(u2)
end
end

0 comments on commit cf865d0

Please sign in to comment.