blob: 1e01f027858b84fce9cb2129bb98434f046f1792 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
# == Schema Information
#
# Table name: status_mutes
#
# id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# status_id :bigint(8) not null
#
class StatusMute < ApplicationRecord
include Cacheable
validates :account_id, uniqueness: { scope: :status_id }
belongs_to :account, inverse_of: :status_mutes
belongs_to :status, inverse_of: :mutes
cache_associated :account, :status
end
|