blob: a3c8baf21aa64b623bf3aa841f99c1ffdea7552f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
# frozen_string_literal: true
class Mention < ApplicationRecord
belongs_to :account, inverse_of: :mentions
belongs_to :status
validates :account, :status, presence: true
validates :account, uniqueness: { scope: :status }
end
|