mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
parent
e4606bfa1d
commit
3f79b1c0f3
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user