blob: 223893604bcc057f9d8f5ff18e71bebe7f506df8 (
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 :integer 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
|