adds date and booth/officer trace fields to poll partial results

This commit is contained in:
Juanjo Bazán
2017-02-01 12:37:47 +01:00
parent aa6eee6df0
commit f2dcd65471
2 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
class AddsFieldsToPollPartialResults < ActiveRecord::Migration
def change
add_column :poll_partial_results, :date, :date
add_column :poll_partial_results, :booth_assignment_id, :integer
add_column :poll_partial_results, :officer_assignment_id, :integer
add_index :poll_partial_results, [:booth_assignment_id, :date]
end
end