Remove token column from poll_voters table
As it is no longer used as originally pretended [1][2]. [1] Check consul/consul pull request 1994 [2] Check consul/consul pull request 3539
This commit is contained in:
committed by
taitus
parent
dd04765af3
commit
64676be246
@@ -146,8 +146,7 @@ section "Creating Poll Voters" do
|
||||
document_number: user.document_number,
|
||||
user: user,
|
||||
poll: poll,
|
||||
origin: "web",
|
||||
token: SecureRandom.hex(32))
|
||||
origin: "web")
|
||||
end
|
||||
|
||||
def randomly_answer_questions(poll, user)
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
class RemoveTokenFromPollVoter < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_column :poll_voters, :token, :string
|
||||
end
|
||||
end
|
||||
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_11_03_112944) do
|
||||
ActiveRecord::Schema.define(version: 2022_09_15_154808) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_trgm"
|
||||
@@ -1210,7 +1210,6 @@ ActiveRecord::Schema.define(version: 2021_11_03_112944) do
|
||||
t.integer "user_id"
|
||||
t.string "origin"
|
||||
t.integer "officer_id"
|
||||
t.string "token"
|
||||
t.index ["booth_assignment_id"], name: "index_poll_voters_on_booth_assignment_id"
|
||||
t.index ["document_number"], name: "index_poll_voters_on_document_number"
|
||||
t.index ["officer_assignment_id"], name: "index_poll_voters_on_officer_assignment_id"
|
||||
|
||||
Reference in New Issue
Block a user