From 75b1488cf4dfe54260deff8df20e5e9b9fd90aea Mon Sep 17 00:00:00 2001 From: ThibG Date: Fri, 18 Jan 2019 15:56:55 +0100 Subject: Add tombstones for remote statuses (#9830) * Add Tombstone model to remember object deletion * Do not recreate a status if it has been deleted * Record Tombstone for remote deleted items Also, only record deleted items from same-host actors * Clear an user's tombstones when their key change --- app/models/tombstone.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/models/tombstone.rb (limited to 'app/models/tombstone.rb') diff --git a/app/models/tombstone.rb b/app/models/tombstone.rb new file mode 100644 index 000000000..35b7337ff --- /dev/null +++ b/app/models/tombstone.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +# == Schema Information +# +# Table name: tombstones +# +# id :bigint(8) not null, primary key +# account_id :bigint(8) +# uri :string not null +# created_at :datetime not null +# updated_at :datetime not null +# + +class Tombstone < ApplicationRecord +end -- cgit From 80768e2840d1dc412882343c035de114bd732532 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 18 Jan 2019 23:52:09 +0100 Subject: Fix missing account association in tombstone model (#9857) --- app/models/tombstone.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/models/tombstone.rb') diff --git a/app/models/tombstone.rb b/app/models/tombstone.rb index 35b7337ff..997bb65fd 100644 --- a/app/models/tombstone.rb +++ b/app/models/tombstone.rb @@ -12,4 +12,5 @@ # class Tombstone < ApplicationRecord + belongs_to :account end -- cgit