From 1dcc9ff189e588555c5ad3d20de2884e96cfc7ff Mon Sep 17 00:00:00 2001 From: rhymes Date: Thu, 2 Apr 2020 01:34:18 +0200 Subject: [PATCH] Ignore unused polls and poll_options columns (#6945) --- app/models/poll.rb | 4 ++++ app/models/poll_option.rb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/models/poll.rb b/app/models/poll.rb index 0c0e5a1c4..27ba7c927 100644 --- a/app/models/poll.rb +++ b/app/models/poll.rb @@ -1,4 +1,8 @@ class Poll < ApplicationRecord + self.ignored_columns = %w[ + allow_multiple_selections + ] + attr_accessor :poll_options_input_array serialize :voting_data diff --git a/app/models/poll_option.rb b/app/models/poll_option.rb index cb7fcc4b1..c38af7e59 100644 --- a/app/models/poll_option.rb +++ b/app/models/poll_option.rb @@ -1,4 +1,8 @@ class PollOption < ApplicationRecord + self.ignored_columns = %w[ + counts_in_tabulation + ] + belongs_to :poll has_many :poll_votes