lock voting when interview status not pending

This commit is contained in:
Mark Moser
2016-12-04 16:19:16 -06:00
parent bc31f6cf17
commit 73df3d1258
3 changed files with 20 additions and 6 deletions

View File

@ -0,0 +1,6 @@
# frozen_string_literal: true
class RemoveVoteLocking < ActiveRecord::Migration[5.0]
def change
remove_column :reviewer_votes, :locked, :boolean, default: false, null: false
end
end

View File

@ -80,7 +80,6 @@ ActiveRecord::Schema.define(version: 20161120175737) do
t.integer "vote", default: 0, null: false
t.integer "veto", default: 0, null: false
t.datetime "last_reminded"
t.boolean "locked", default: false, null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["candidate_id", "user_id"], name: "index_reviewer_votes_on_candidate_id_and_user_id", unique: true, using: :btree