A platform for community discussion. Free, open, simple.
DEV: Ignore post_id and for_topic for bookmarks (#16898)
Martin Brennan3f79b1c0f396
diff --git a/app/models/bookmark.rb b/app/models/bookmark.rbindex a74abbbac5e..37491ebf600 100644--- a/app/models/bookmark.rb+++ b/app/models/bookmark.rb@@ -1,6 +1,11 @@# frozen_string_literal: trueclass 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_bookmarkablesself.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#