Created
April 7, 2018 15:37
-
-
Save chandeeland/e1085f6f2c86068fed451ee967c6570c to your computer and use it in GitHub Desktop.
add day parts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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