Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add some logging so i can monitor the task when running

  • Loading branch information...
commit a23c2cac8207d99db557c692fbdf3609a5a2884b 1 parent 8fed4a5
@cjstewart88 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/tasks/convert_user_favorites_to_playlists.rake
View
2  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")
Please sign in to comment.
Something went wrong with that request. Please try again.