Drop post updates table.

This commit is contained in:
evazion
2019-08-29 00:28:54 -05:00
parent d73895312e
commit d56b56a6a1
4 changed files with 9 additions and 52 deletions

View File

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