Ignore unused polls and poll_options columns (#6945)

This commit is contained in:
rhymes 2020-04-02 01:34:18 +02:00 committed by GitHub
parent 01465efcb2
commit 1dcc9ff189
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -1,4 +1,8 @@
class Poll < ApplicationRecord
self.ignored_columns = %w[
allow_multiple_selections
]
attr_accessor :poll_options_input_array
serialize :voting_data

View file

@ -1,4 +1,8 @@
class PollOption < ApplicationRecord
self.ignored_columns = %w[
counts_in_tabulation
]
belongs_to :poll
has_many :poll_votes