From 3f79b1c0f3966f71b67bd0cd216cc4e592f4503e Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Tue, 24 May 2022 13:52:34 +1000 Subject: [PATCH] DEV: Ignore post_id and for_topic for bookmarks (#16898) Since fcc2e7ebbf3fa5f17c24c70149a949850f29a5f3 we no longer use these columns, will delete in a few months. --- app/models/bookmark.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/models/bookmark.rb b/app/models/bookmark.rb index a74abbbac5..37491ebf60 100644 --- a/app/models/bookmark.rb +++ b/app/models/bookmark.rb @@ -1,6 +1,11 @@ # frozen_string_literal: true class Bookmark < ActiveRecord::Base + self.ignored_columns = [ + "post_id", # TODO (martin) (2022-08-01) remove + "for_topic" # TODO (martin) (2022-08-01) remove + ] + cattr_accessor :registered_bookmarkables self.registered_bookmarkables = [] @@ -201,7 +206,6 @@ end # # id :bigint not null, primary key # user_id :bigint not null -# post_id :bigint # name :string(100) # reminder_at :datetime # created_at :datetime not null @@ -210,7 +214,6 @@ end # reminder_set_at :datetime # auto_delete_preference :integer default(0), not null # pinned :boolean default(FALSE) -# for_topic :boolean default(FALSE), not null # bookmarkable_id :integer # bookmarkable_type :string #