Skip to content

Instantly share code, notes, and snippets.

@mattymess
Created August 10, 2015 21:23
Show Gist options
  • Save mattymess/e4ba961660a39faf3711 to your computer and use it in GitHub Desktop.
Save mattymess/e4ba961660a39faf3711 to your computer and use it in GitHub Desktop.
YtVideo.all.each do |video|
video.marketplace_status = 0
video.user_id = video.yt_channel.user.id
video.publish_at = video.yt_published_at
video.save
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment