skill-assessment-app/db/migrate/20161120175737_init_reviewer_votes.rb

7 lines
163 B
Ruby
Raw Normal View History

2016-11-20 13:07:53 -06:00
# frozen_string_literal: true
class InitReviewerVotes < ActiveRecord::Migration[5.0]
def up
Candidate.where(completed: true).each(&:build_reviews)
end
end