skill-assessment-app/db/migrate/20161120175737_init_reviewer_votes.rb
2016-11-20 13:07:53 -06:00

7 lines
163 B
Ruby

# frozen_string_literal: true
class InitReviewerVotes < ActiveRecord::Migration[5.0]
def up
Candidate.where(completed: true).each(&:build_reviews)
end
end