adds poll_id and stats fields to poll_voters
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class AddPollIdAndStatsFieldsToPollVoter < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :poll_voters, :poll_id, :integer, null: false
|
||||
|
||||
remove_column :poll_voters, :booth_assignment_id, :integer, null: false
|
||||
add_column :poll_voters, :booth_assignment_id, :integer
|
||||
|
||||
add_column :poll_voters, :age, :integer
|
||||
add_column :poll_voters, :gender, :string
|
||||
add_column :poll_voters, :geozone_id, :integer
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user