Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chandeeland/e1085f6f2c86068fed451ee967c6570c to your computer and use it in GitHub Desktop.
Save chandeeland/e1085f6f2c86068fed451ee967c6570c to your computer and use it in GitHub Desktop.
add day parts
ids = ['5aa3051901e9de000718f7b2', '5ac7a8106ae1c000075370fa']
locs = Platform::Location.where(:id.in => ids)
300.times do |d|
day = d.days.from_now.beginning_of_day + 1.minute
locs.each { |l| l.business_day_for(day) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment