What is the best way to generate a random DateTime in Ruby/Rails? Trying to create a nice seeds.rb file. Going to use it like so:
Foo.create(name: Faker::Lo
My 'ish' gem provides a nice way of handling this:
# plus/minus 5 min of input date Time.now.ish # override that time range like this Time.now.ish(:offset => 1.year)
https://github.com/spilliton/ish