gearheads
/
mastodon
Archived
2
0
Fork 0
This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
mastodon/app/models/mention.rb

8 lines
205 B
Ruby
Raw Normal View History

2016-02-25 00:17:01 +01:00
class Mention < ActiveRecord::Base
belongs_to :account, inverse_of: :mentions
belongs_to :status
2016-02-25 00:17:01 +01:00
validates :account, :status, presence: true
validates :account, uniqueness: { scope: :status }
end