Add: #518 コンテンツキャッシュについて、リアクションのあった投稿は削除しないオプション (#535)

* Add: #518 コンテンツキャッシュについて、リアクションのあった投稿は削除しないオプション

* Fix: 新規登録のテストが特定時刻で落ちる問題
This commit is contained in:
KMY(雪あすか) 2024-02-13 08:56:55 +09:00 committed by GitHub
parent ba776d3677
commit f2fb829e63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 118 additions and 5 deletions

View file

@ -9,6 +9,7 @@
# updated_at :datetime not null
# account_id :bigint(8) not null
# status_id :bigint(8) not null
# uri :string
#
class Favourite < ApplicationRecord
@ -16,6 +17,8 @@ class Favourite < ApplicationRecord
update_index('statuses', :status)
scope :local, -> { where(uri: nil) }
belongs_to :account, inverse_of: :favourites
belongs_to :status, inverse_of: :favourites