Add default 0 value for Poll Recount amounts

This commit is contained in:
Bertocq
2017-10-02 21:16:22 +02:00
parent 5aa063668f
commit d401a2cd92
2 changed files with 11 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
class AddDefaultToRecountAmounts < ActiveRecord::Migration
def change
change_column_default :poll_recounts, :white_amount, 0
change_column_default :poll_recounts, :null_amount, 0
change_column_default :poll_recounts, :total_amount, 0
end
end