about summary refs log blame commit diff
path: root/app/models/block.rb
blob: ae456a6b6bf798cc2201ef700cff60837f91fd1a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                             
                               
                   
 
                                                                   
 
                                                                  
# frozen_string_literal: true

class Block < ApplicationRecord
  include Paginable

  belongs_to :account, required: true
  belongs_to :target_account, class_name: 'Account', required: true

  validates :account_id, uniqueness: { scope: :target_account_id }
end