diff options
author | ThibG <thib@sitedethib.com> | 2019-01-18 15:56:55 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-01-18 15:56:55 +0100 |
commit | 75b1488cf4dfe54260deff8df20e5e9b9fd90aea (patch) | |
tree | da5c67eabed97c45a55d6943a203a8fec8683095 /db/migrate | |
parent | 31f396b57dea684685d0affc3727a75eed2f38c9 (diff) |
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
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20190117114553_create_tombstones.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20190117114553_create_tombstones.rb b/db/migrate/20190117114553_create_tombstones.rb new file mode 100644 index 000000000..06d6d8c5a --- /dev/null +++ b/db/migrate/20190117114553_create_tombstones.rb @@ -0,0 +1,12 @@ +class CreateTombstones < ActiveRecord::Migration[5.2] + def change + create_table :tombstones do |t| + t.belongs_to :account, foreign_key: { on_delete: :cascade } + t.string :uri, null: false + + t.timestamps + end + + add_index :tombstones, :uri + end +end |