blob: 52f40e4b28d20f22718c30872bff3a46c1268e66 (
plain) (
blame)
1
2
3
4
5
6
7
|
class Mention < ActiveRecord::Base
belongs_to :account, inverse_of: :mentions
belongs_to :status, inverse_of: :mentions
validates :account, :status, presence: true
validates :account, uniqueness: { scope: :status }
end
|