assemblymade/coderwall

View on GitHub
app/jobs/create_github_profile_job.rb

Summary

Maintainability
A
0 mins
Test Coverage
#TODO DELETE ME

class CreateGithubProfileJob
  include Sidekiq::Worker
  sidekiq_options queue: :github

  def perform
    User.where('github_id is not null').find_each  do |user|
      user.create_github_profile if user.github_profile.blank?
    end
  end
end