Drop post updates table.
This commit is contained in:
@@ -38,7 +38,6 @@ class Post < ApplicationRecord
|
||||
after_commit :delete_files, :on => :destroy
|
||||
after_commit :remove_iqdb_async, :on => :destroy
|
||||
after_commit :update_iqdb_async, :on => :create
|
||||
after_commit :notify_pubsub
|
||||
|
||||
belongs_to :updater, :class_name => "User", optional: true # this is handled in versions
|
||||
belongs_to :approver, class_name: "User", optional: true
|
||||
@@ -1417,12 +1416,6 @@ class Post < ApplicationRecord
|
||||
revert_to(target)
|
||||
save!
|
||||
end
|
||||
|
||||
def notify_pubsub
|
||||
return unless Danbooru.config.google_api_project
|
||||
|
||||
# PostUpdate.insert(id)
|
||||
end
|
||||
end
|
||||
|
||||
module NoteMethods
|
||||
@@ -1885,16 +1878,4 @@ class Post < ApplicationRecord
|
||||
|
||||
save
|
||||
end
|
||||
|
||||
def update_column(name, value)
|
||||
ret = super(name, value)
|
||||
notify_pubsub
|
||||
ret
|
||||
end
|
||||
|
||||
def update_columns(attributes)
|
||||
ret = super(attributes)
|
||||
notify_pubsub
|
||||
ret
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user