Totally remove Poll::FinalRecount model, table spec and factory
This commit is contained in:
11
db/migrate/20170918231410_remove_poll_final_recounts.rb
Normal file
11
db/migrate/20170918231410_remove_poll_final_recounts.rb
Normal 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
|
||||
Reference in New Issue
Block a user