Permalink
Browse files

add some logging so i can monitor the task when running

  • Loading branch information...
1 parent 8fed4a5 commit a23c2cac8207d99db557c692fbdf3609a5a2884b @cjstewart88 committed Apr 4, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/tasks/convert_user_favorites_to_playlists.rake
@@ -3,6 +3,8 @@ namespace :db do
task :convert_user_favorites_to_playlists => :environment do
User.all.each do | user |
user_favorites = Favorites.where(:user_id => user.id)
+
+ Rails.logger.info user.id
if user_favorites.count != 0
favorites_playlist = user.playlists.create(:playlist_name => "Favorites")

0 comments on commit a23c2ca

Please sign in to comment.