Skip to content

Instantly share code, notes, and snippets.

@dubilla
Created February 9, 2014 16:34
Show Gist options
  • Save dubilla/8901696 to your computer and use it in GitHub Desktop.
Save dubilla/8901696 to your computer and use it in GitHub Desktop.
activity_log_iteration_set_duration_in_days.rb
ActivityLogIteration.latest.where('end_date is null').find_each do |iteration|
iteration.set_duration_in_days_until_today
iteration.save
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment