summaryrefslogtreecommitdiff
path: root/app/models/user_preference.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/user_preference.rb')
-rw-r--r--app/models/user_preference.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb
index c05bc80415a..b49a7eb72dc 100644
--- a/app/models/user_preference.rb
+++ b/app/models/user_preference.rb
@@ -1,11 +1,15 @@
# frozen_string_literal: true
class UserPreference < ApplicationRecord
+ include IgnorableColumns
+
# We could use enums, but Rails 4 doesn't support multiple
# enum options with same name for multiple fields, also it creates
# extra methods that aren't really needed here.
NOTES_FILTERS = { all_notes: 0, only_comments: 1, only_activity: 2 }.freeze
+ ignore_column :feature_filter_type, remove_with: '13.8', remove_after: '2021-01-22'
+
belongs_to :user
scope :with_user, -> { joins(:user) }