policies and auto review builds
This commit is contained in:
6
db/migrate/20161120175737_init_reviewer_votes.rb
Normal file
6
db/migrate/20161120175737_init_reviewer_votes.rb
Normal file
@ -0,0 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
class InitReviewerVotes < ActiveRecord::Migration[5.0]
|
||||
def up
|
||||
Candidate.where(completed: true).each(&:build_reviews)
|
||||
end
|
||||
end
|
@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20161118023249) do
|
||||
ActiveRecord::Schema.define(version: 20161120175737) do
|
||||
|
||||
create_table "answers", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
||||
t.integer "candidate_id"
|
||||
|
Reference in New Issue
Block a user