When the custom rake task to migrate data from one system to another was implemented our cron job stopped working. It looked like it was trying to execute the contents of the custom rake file every time a call to rake -f Rakefile was made. The problem ended up being Redmine’s Rakefile was set to [...]
Archive for the ‘Ruby’ Category
Ruby Rakefile auto executes includes
Posted in Ruby, tagged namespace, rake on January 17, 2011 | Leave a Comment »
Active record find_each in batches
Posted in Ruby on Rails, tagged ruby active record, find each on January 13, 2011 | Leave a Comment »
I wanted to iterate over an active record in batches. Found a great example but for my needs I wanted to walk backwards over the batch. Needless to say it’s not possible. I don’t mind find_each limited to the id field, but DESC would be nice.
Request Tracker to Redmine Migration
Posted in Ruby, tagged rake task, redmine, request tracker, ruby on rails on January 7, 2011 | 5 Comments »
The last two weeks have been focused on learning ruby to write a rake task that would migrate data from Perl based Request Tracker(TM) to a RoR based Redmine issue tracking system. I’m happy to report (and sad I didn’t post incremental updates on my experiences with ruby) that I have released a beta rake [...]