From adcbf0b48da988459fd1007f3ad9a7834b200bdb Mon Sep 17 00:00:00 2001 From: Lori Bailey <44073106+elceebee@users.noreply.github.com> Date: Fri, 27 Sep 2024 17:02:10 +0100 Subject: [PATCH] Ignore unused columns --- app/models/application_choice.rb | 2 ++ config/analytics.yml | 2 -- config/analytics_blocklist.yml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/models/application_choice.rb b/app/models/application_choice.rb index 69624f4dfa2..7d6bb466ab8 100644 --- a/app/models/application_choice.rb +++ b/app/models/application_choice.rb @@ -2,6 +2,8 @@ class ApplicationChoice < ApplicationRecord include Chased include TouchApplicationFormState + self.ignored_columns += %w[decline_by_default_at decline_by_default_days] + before_create :set_initial_status belongs_to :application_form, touch: true diff --git a/config/analytics.yml b/config/analytics.yml index 276f7107be4..6513c171140 100644 --- a/config/analytics.yml +++ b/config/analytics.yml @@ -17,8 +17,6 @@ shared: - original_course_option_id - course_option_id - current_course_option_id - - decline_by_default_at - - decline_by_default_days - declined_at - declined_by_default - id diff --git a/config/analytics_blocklist.yml b/config/analytics_blocklist.yml index 9bdc915921c..a485a9956a3 100644 --- a/config/analytics_blocklist.yml +++ b/config/analytics_blocklist.yml @@ -216,6 +216,8 @@ :application_choices: - provider_ids - current_recruitment_cycle_year + - decline_by_default_at + - decline_by_default_days :site_settings: - id - name