Totally remove Poll::FinalRecount model, table spec and factory

This commit is contained in:
Bertocq
2017-09-19 01:22:30 +02:00
parent a3bf69e78d
commit 2e3b5aad49
6 changed files with 12 additions and 84 deletions

View File

@@ -0,0 +1,11 @@
class RemovePollFinalRecounts < ActiveRecord::Migration
def change
remove_index :poll_final_recounts, column: :booth_assignment_id
remove_index :poll_final_recounts, column: :officer_assignment_id
remove_foreign_key :poll_final_recounts, column: "booth_assignment_id"
remove_foreign_key :poll_final_recounts, column: "officer_assignment_id"
drop_table :poll_final_recounts
end
end