* Add: #518 コンテンツキャッシュについて、リアクションのあった投稿は削除しないオプション * Fix: 新規登録のテストが特定時刻で落ちる問題
This commit is contained in:
parent
ba776d3677
commit
f2fb829e63
15 changed files with 118 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue