about summary refs log tree commit diff
path: root/app/models/mention.rb
blob: b39fa2cbbc755082e3529c5f7b0d69e6e2a4eb72 (plain) (blame)
1
2
3
4
5
6
7
class Mention < ApplicationRecord
  belongs_to :account, inverse_of: :mentions
  belongs_to :status

  validates :account, :status, presence: true
  validates :account, uniqueness: { scope: :status }
end