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

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