DEV: Ignore post_id and for_topic for bookmarks (#16898)

Since fcc2e7ebbf we
no longer use these columns, will delete in a few
months.
This commit is contained in:
Martin Brennan 2022-05-24 13:52:34 +10:00 committed by GitHub
parent e4606bfa1d
commit 3f79b1c0f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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
#