diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-22 21:55:56 +0200 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-27 13:43:13 -0600 |
commit | 422b59808b4818171e057e1a459de153816bf505 (patch) | |
tree | 5320830d5d3146c9032a0e975a069a4a1be76253 /db/migrate/20190819134503_add_deleted_at_to_statuses.rb | |
parent | 165f53238655bf87f27981282ca8deb71474c86f (diff) |
port tootsuite#11623 to monsterfork: Add soft delete for statuses for instant deletes through API
* Add soft delete for statuses to allow them to appear instant * Allow reporting soft-deleted statuses and show them in the admin UI * Change index for getting an account's statuses
Diffstat (limited to 'db/migrate/20190819134503_add_deleted_at_to_statuses.rb')
-rw-r--r-- | db/migrate/20190819134503_add_deleted_at_to_statuses.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20190819134503_add_deleted_at_to_statuses.rb b/db/migrate/20190819134503_add_deleted_at_to_statuses.rb new file mode 100644 index 000000000..5af109097 --- /dev/null +++ b/db/migrate/20190819134503_add_deleted_at_to_statuses.rb @@ -0,0 +1,5 @@ +class AddDeletedAtToStatuses < ActiveRecord::Migration[5.2] + def change + add_column :statuses, :deleted_at, :datetime + end +end |