populated seeds

SEED_MULTIPLIER works up to 20 at least (takes 3-4 min), creating 2500 users
Short answer: no, because 0 is itself pointing to a city.

On Fri, Oct 3, 2014 at 6:43 PM, Andur Carr <notifications@github.com> wrote:

> In db/seeds.rb:
>
> > +
> > +  end #u.size / 6.times
> > +
> > +end #0.upto(5)
> > +
> > +
> > +
> > +
> > +#create 50/25/12/6/3/2/1 split for cities, states
> > +
> > +percent = 50
> > +id = 1
> > +
> > +while percent > 1 do
> > +  (percent * SEED_MULTIPLIER).times do
> > +    a = Address.find_by_city(0)
>
> Will this potentially leave some addresses without cities?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/vikingeducation/viking_store/pull/1/files#r18426868>.
>



-- 

*Michael Alexander*

(310) 429-8822

alexandermw@gmail.com