Re: [Rails-core] Predictable seed

2016-02-18 Thread Ben Colon
a écrit : > > Interesting idea. If what you're after is consistent data, why are you > randomizing anything? > > > On Wed, Feb 17, 2016 at 9:48 AM, Ben Colon > wrote: > >> Hey there, >> >> In many projects, I guess like everyone, we're using the

[Rails-core] Predictable seed

2016-02-17 Thread Ben Colon
Hey there, In many projects, I guess like everyone, we're using the seed file to generate a bunch of models with random data. Obviously, after running db:seed task, each developer has a "different" database. Not cool. If we need to sync those data, we prefix seed.rb code with something like ``